Skip to content

Commit deb7955

Browse files
committed
Fix #81150 Add UPGRADING note for float to int deprecation
[ci skip]
1 parent 5d37cd9 commit deb7955

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ PHP 8.1 UPGRADE NOTES
308308
implement the new methods (if you only support PHP 7.4 and higher) or
309309
implement both (if you support older PHP versions as well).
310310
RFC: https://wiki.php.net/rfc/phase_out_serializable
311+
. Implicit conversion of floats to integers that result in loss of precision,
312+
e.g. a truncation from 1.9 to 1, is deprecated. This affects array keys,
313+
int parameter and return types, and operators working on integers.
314+
RFC: https://wiki.php.net/rfc/implicit-float-int-deprecate
311315

312316
- MySQLi:
313317
. The mysqli_driver::$driver_version property has been deprecated. The driver

0 commit comments

Comments
 (0)