Skip to content

Commit

Permalink
Merge pull request #3452 from PHPOffice/Minor-Bugfix_Apply-strict-val…
Browse files Browse the repository at this point in the history
…idation-to-Complex-suffix

Apply strict type checking to Complex suffix
  • Loading branch information
MarkBaker authored Mar 12, 2023
2 parents a3489b5 + 6836c84 commit 0875326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSpreadsheet/Calculation/Engineering/Complex.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function COMPLEX($realNumber = 0.0, $imaginary = 0.0, $suffix = 'i
return $e->getMessage();
}

if (($suffix == 'i') || ($suffix == 'j') || ($suffix == '')) {
if (($suffix === 'i') || ($suffix === 'j') || ($suffix === '')) {
$complex = new ComplexObject($realNumber, $imaginary, $suffix);

return (string) $complex;
Expand Down

0 comments on commit 0875326

Please sign in to comment.