In PHP7 required parameters must be set

Closes #486
This commit is contained in:
KoenigsKind
2018-05-03 17:37:49 +02:00
committed by Adrien Crivelli
parent b509b672e0
commit dcc1832215
2 changed files with 2 additions and 2 deletions
@@ -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);
}
+1 -1
View File
@@ -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;
}