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
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ class PolynomialBestFit extends BestFit
$this->intersect = array_shift($coefficients); $this->intersect = array_shift($coefficients);
$this->slope = $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) { foreach ($this->xValues as $xKey => $xValue) {
$this->yBestFitValues[$xKey] = $this->getValueOfYForX($xValue); $this->yBestFitValues[$xKey] = $this->getValueOfYForX($xValue);
} }

View File

@ -827,7 +827,7 @@ class Worksheet extends BIFFwriter
$formula = substr($formula, 1); $formula = substr($formula, 1);
} else { } else {
// Error handling // Error handling
$this->writeString($row, $col, 'Unrecognised character for formula'); $this->writeString($row, $col, 'Unrecognised character for formula', 0);
return -1; return -1;
} }