From a8b8d435a7fef626867bbc3928e687b17eeef117 Mon Sep 17 00:00:00 2001 From: Kamil Tekiela Date: Fri, 6 Aug 2021 14:00:39 +0100 Subject: [PATCH] The fallback for undefined constants is removed as of PHP 8 (#795) --- language/types/array.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/language/types/array.xml b/language/types/array.xml index fa6cb62448..7f3e253d2f 100644 --- a/language/types/array.xml +++ b/language/types/array.xml @@ -617,9 +617,12 @@ echo $foo[bar]; - The fallback to treat an undefined constant as bare string is deprecated as - of PHP 7.2.0, and issues an error of level E_WARNING. - Formerly, an error of level E_NOTICE has been issued. + The fallback to treat an undefined constant as bare string issues an error + of level E_NOTICE. + This has been deprecated as of PHP 7.2.0, and issues an error + of level E_WARNING. + As of PHP 8.0.0, it has been removed and throws an + Error exception.