diff --git a/src/TestFramework/Coverage/JUnit/TestLocationBucketSorter.php b/src/TestFramework/Coverage/JUnit/TestLocationBucketSorter.php index a731f65f58..96e147781d 100644 --- a/src/TestFramework/Coverage/JUnit/TestLocationBucketSorter.php +++ b/src/TestFramework/Coverage/JUnit/TestLocationBucketSorter.php @@ -78,7 +78,7 @@ public static function bucketSort(array $uniqueTestLocations): iterable // This is a very hot path. Factoring here another method just to test this math may not be as good idea. // Quick drop off lower bits, reducing precision to 8th of a second - $msTime = $location->getExecutionTime() * 1024 >> 7; // * 1024 / 128 + $msTime = (int) ($location->getExecutionTime() * 1024) >> 7; // * 1024 / 128 // For anything above 4 seconds reduce precision to 4 seconds if ($msTime > 32) {