Skip to content

Commit

Permalink
fix error: implicit conversion from float to int loses precision (#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander1000 authored Jan 27, 2022
1 parent a386de3 commit 6daf85b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/phing/listener/DefaultLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public static function formatTime($micros)
$minutes,
($minutes === 1 ? " " : "s "),
$seconds - floor($seconds / 60) * 60,
($seconds % 60 === 1 ? "" : "s")
(intval($seconds) % 60 === 1 ? "" : "s")
);
} else {
return sprintf("%0.4f second%s", $seconds, (intval($seconds) % 60 === 1 ? "" : "s"));
Expand Down

0 comments on commit 6daf85b

Please # to comment.