MDL-75945 core: Convert a floating value to an integer.

In PHP 8.1, any implicit conversion of float to int, which leads to a loss in precision, is now deprecated.
To avoid the error warning, the code must explicitly convert a floating value to an integer.
This commit is contained in:
Meirza 2023-01-13 22:48:44 +07:00
parent 5b2e04f301
commit bf3a9c3b3f
3 changed files with 190 additions and 30 deletions

View file

@ -52,6 +52,7 @@ information provided here is intended especially for developers.
The old class locations have been aliased for backwards compatibility and will emit a deprecation notice in a future
release.
* Convert a floating value to an integer in lib/graphlib.php to avoid PHP 8.1 deprecated function error.
=== 4.1 ===