diff --git a/NEWS b/NEWS index 26b6a59cb5d3..494915f3d923 100644 --- a/NEWS +++ b/NEWS @@ -289,7 +289,7 @@ PHP NEWS 11 Sep 2025, PHP 8.5.0beta3 - Core: - . Destructing non-array values (other than NULL) using [] or list() now + . Destructuring non-array values (other than NULL) using [] or list() now emits a warning. (Girgias) . Fixed bug GH-19637 (Incorrect Closure scope for FCC in constant expression). (timwolla) diff --git a/UPGRADING b/UPGRADING index f95ca587594a..94b272c69c70 100644 --- a/UPGRADING +++ b/UPGRADING @@ -52,7 +52,7 @@ PHP 8.5 UPGRADE NOTES . The disable_classes INI setting has been removed as it causes various engine assumptions to be broken. RFC: https://wiki.php.net/rfc/deprecations_php_8_5#remove_disable_classes_ini_setting - . Destructing non-array values (other than NULL) using [] or list() now + . Destructuring non-array values (other than NULL) using [] or list() now emits a warning. RFC: https://wiki.php.net/rfc/warnings-php-8-5#destructuring_non-array_values . A warning is now emitted when casting floats (or strings that look like