From dcc18322155aed681bc7b1c15d9fb055ee7c8afb Mon Sep 17 00:00:00 2001 From: KoenigsKind Date: Thu, 3 May 2018 17:37:49 +0200 Subject: [PATCH] In PHP7 required parameters must be set Closes #486 --- src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php | 2 +- src/PhpSpreadsheet/Writer/Xls/Worksheet.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php b/src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php index 60739705..83c9200f 100644 --- a/src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php +++ b/src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php @@ -164,7 +164,7 @@ class PolynomialBestFit extends BestFit $this->intersect = array_shift($coefficients); $this->slope = $coefficients; - $this->calculateGoodnessOfFit($x_sum, $y_sum, $xx_sum, $yy_sum, $xy_sum); + $this->calculateGoodnessOfFit($x_sum, $y_sum, $xx_sum, $yy_sum, $xy_sum, 0, 0, 0); foreach ($this->xValues as $xKey => $xValue) { $this->yBestFitValues[$xKey] = $this->getValueOfYForX($xValue); } diff --git a/src/PhpSpreadsheet/Writer/Xls/Worksheet.php b/src/PhpSpreadsheet/Writer/Xls/Worksheet.php index 48df37e6..351e54d9 100644 --- a/src/PhpSpreadsheet/Writer/Xls/Worksheet.php +++ b/src/PhpSpreadsheet/Writer/Xls/Worksheet.php @@ -827,7 +827,7 @@ class Worksheet extends BIFFwriter $formula = substr($formula, 1); } else { // Error handling - $this->writeString($row, $col, 'Unrecognised character for formula'); + $this->writeString($row, $col, 'Unrecognised character for formula', 0); return -1; }