Skip to content

Commit

Permalink
Fix deprecation for PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andypost authored Oct 12, 2021
1 parent f268ca4 commit 1a531cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/Timing.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static function printRunTime($force=false)
$time .= ", $secs secs";
}
} else if ($time > 1000) {
$time = round(($time / 1000), 2).' secs';
$time = round(((int) $time / 1000), 2).' secs';
} else {
$time = round($time).'ms';
}
Expand Down

0 comments on commit 1a531cf

Please sign in to comment.