diff --git a/src/PhpSpreadsheet/Calculation/Engineering.php b/src/PhpSpreadsheet/Calculation/Engineering.php index 6f1fd2a5..2be5c50f 100644 --- a/src/PhpSpreadsheet/Calculation/Engineering.php +++ b/src/PhpSpreadsheet/Calculation/Engineering.php @@ -2016,7 +2016,7 @@ class Engineering $parsedComplex = self::parseComplex($complexNumber); $theta = self::IMARGUMENT($complexNumber); - if ($theta === functions::DIV0()) { + if ($theta === Functions::DIV0()) { return '0'; } diff --git a/src/PhpSpreadsheet/Chart/Renderer/JpGraph.php b/src/PhpSpreadsheet/Chart/Renderer/JpGraph.php index 9834f608..98baab85 100644 --- a/src/PhpSpreadsheet/Chart/Renderer/JpGraph.php +++ b/src/PhpSpreadsheet/Chart/Renderer/JpGraph.php @@ -4,6 +4,7 @@ namespace PhpOffice\PhpSpreadsheet\Chart\Renderer; use PhpOffice\PhpSpreadsheet\Chart; use PhpOffice\PhpSpreadsheet\Settings; +use PhpOffice\PhpSpreadsheet\Style\NumberFormat; class JpGraph { @@ -846,6 +847,8 @@ class JpGraph /** * Create a new jpgraph. + * + * @param Chart $chart */ public function __construct(Chart $chart) {