-
Bug
-
Resolution: Fixed
-
Minor
-
4.1.5
Using the maintenance_warning() function on PHP 8.1 results in a deprecation notice being emitted for an int to float cast. The float value should be floored before the modulo operation which does the implicit cast.
To replicate:
- Debugging on
- php /admin/cli/cfg.php --name=maintenance_later --set=<TIME + 300>
- Visit gui and observe deprecation warning in DOM.
Deprecated: Implicit conversion from float 1305.1166666666666 to int loses precision in /var/www/moodlecore/lib/outputrenderers.php on line 844
- is child of
-
MDL-76356 Implicit conversion to ints/arrays shows notice in PHP 8.1
- Closed