From deb7955bf44cb687419582e0ea58ff259c1952d5 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 17 Jun 2021 09:52:00 +0200 Subject: [PATCH] Fix #81150 Add UPGRADING note for float to int deprecation [ci skip] --- UPGRADING | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UPGRADING b/UPGRADING index 5c8590a1b97..a9eb6b42e37 100644 --- a/UPGRADING +++ b/UPGRADING @@ -308,6 +308,10 @@ PHP 8.1 UPGRADE NOTES implement the new methods (if you only support PHP 7.4 and higher) or implement both (if you support older PHP versions as well). RFC: https://wiki.php.net/rfc/phase_out_serializable + . Implicit conversion of floats to integers that result in loss of precision, + e.g. a truncation from 1.9 to 1, is deprecated. This affects array keys, + int parameter and return types, and operators working on integers. + RFC: https://wiki.php.net/rfc/implicit-float-int-deprecate - MySQLi: . The mysqli_driver::$driver_version property has been deprecated. The driver