mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
87d9e02f01
When run-tests.php has been typed[1], the type of `$time` has been chosen to be `int`. This, however, leads to truncation, and the somewhat relevant subsecond precision is lost. We fix that by changing the type to `float`, although `int|string` would be more appropriate, but requires PHP ≥ 7.4.0. Another option would be to move the `number_format()` formatting into `junit_mark_test_as()`. [1] <https://github.com/php/php-src/commit/11274f53e7fb9d669d74c23aa7883f5f04d92094> Closes GH-7836.
129 KiB
Executable File
129 KiB
Executable File