From 34a0bcf103f904a680615ef3b96a121a024a8364 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Fri, 29 Aug 2025 17:08:39 +0200 Subject: [PATCH] Update NEWS/UPGRADING for destructing non-array values --- NEWS | 4 ++++ UPGRADING | 3 +++ 2 files changed, 7 insertions(+) diff --git a/NEWS b/NEWS index ac003ca91aa..35d5c34b6fc 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,10 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? ????, PHP 8.5.0beta3 +- Core: + . Destructing non-array values (other than NULL) using [] or list() now + emits a warning. (Girgias) + - Opcache: . Fixed bug GH-19486 (Incorrect opline after deoptimization). (Arnaud) diff --git a/UPGRADING b/UPGRADING index eea2933ae60..3bf3e6c09e1 100644 --- a/UPGRADING +++ b/UPGRADING @@ -52,6 +52,9 @@ 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 + emits a warning. + RFC: https://wiki.php.net/rfc/warnings-php-8-5#destructuring_non-array_values - BZ2: . bzcompress() now throws a ValueError when $block_size is not between