Skip to content

Commit

Permalink
Merge pull request #3 from marscoo/php-8.1
Browse files Browse the repository at this point in the history
Fix deprecated implicit conversion on PHP 8.1
  • Loading branch information
JohnathonKoster authored Aug 27, 2022
2 parents a892e45 + f19571b commit f6be779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Numeral.php
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ public function formatNumber($number, $format, $sep = '')


$totalLength = floor(log($abs) / log(10)) + 1;
$minimumPrecision = $totalLength % 3;
$minimumPrecision = (int)$totalLength % 3;
$minimumPrecision = ($minimumPrecision === 0) ? 3 : $minimumPrecision;

if ($intPrecision > 0 && $abs !== 0) {
Expand Down

0 comments on commit f6be779

Please sign in to comment.