mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
5b2e04f301
commit
bf3a9c3b3f
3 changed files with 190 additions and 30 deletions
|
@ -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 ===
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue