Skip to content

Commit

Permalink
Merge pull request #402 from sreichel/sreichel-patch-phpmath
Browse files Browse the repository at this point in the history
Fixes `A non-numeric value encountered` in PhpMath.php
  • Loading branch information
develart-projects authored Jan 26, 2024
2 parents 2a1a0cc + 8c3b0a7 commit 0eeea1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/Zend/Locale/Math/PhpMath.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public static function Sub($op1, $op2, $scale = null)
if (empty($op1)) {
$op1 = 0;
}
if (empty($op2)) {
$op2 = 0;
}
$op1 = self::normalize($op1);
$op2 = self::normalize($op2);
$result = $op1 - $op2;
Expand Down

0 comments on commit 0eeea1f

Please sign in to comment.