mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-12 02:56:44 +00:00
Merge pull request #3452 from PHPOffice/Minor-Bugfix_Apply-strict-validation-to-Complex-suffix
Apply strict type checking to Complex suffix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user