The fallback for undefined constants is removed as of PHP 8 (#795)

This commit is contained in:
Kamil Tekiela 2021-08-06 14:00:39 +01:00 committed by GitHub
parent 48f0bac7fd
commit a8b8d435a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -617,9 +617,12 @@ echo $foo[bar];
</para>
<warning>
<simpara>
The fallback to treat an undefined constant as bare string is deprecated as
of PHP 7.2.0, and issues an error of level <constant>E_WARNING</constant>.
Formerly, an error of level <constant>E_NOTICE</constant> has been issued.
The fallback to treat an undefined constant as bare string issues an error
of level <constant>E_NOTICE</constant>.
This has been deprecated as of PHP 7.2.0, and issues an error
of level <constant>E_WARNING</constant>.
As of PHP 8.0.0, it has been removed and throws an
<classname>Error</classname> exception.
</simpara>
</warning>