From 6836c8488897a2acafa8caafe4b9457c13a89f55 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 12 Mar 2023 13:12:05 +0100 Subject: [PATCH] Apply strict type checking to Complex suffix --- src/PhpSpreadsheet/Calculation/Engineering/Complex.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Calculation/Engineering/Complex.php b/src/PhpSpreadsheet/Calculation/Engineering/Complex.php index 691de8b70..f7ec02d43 100644 --- a/src/PhpSpreadsheet/Calculation/Engineering/Complex.php +++ b/src/PhpSpreadsheet/Calculation/Engineering/Complex.php @@ -49,7 +49,7 @@ class Complex return $e->getMessage(); } - if (($suffix == 'i') || ($suffix == 'j') || ($suffix == '')) { + if (($suffix === 'i') || ($suffix === 'j') || ($suffix === '')) { $complex = new ComplexObject($realNumber, $imaginary, $suffix); return (string) $complex;