mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Expand upgrading note for namespaced name change
Mention the case from bug #79942. [ci skip]
This commit is contained in:
parent
ee16316148
commit
e81ad4089e
@ -206,7 +206,9 @@ PHP 8.0 UPGRADE NOTES
|
|||||||
RFC: https://wiki.php.net/rfc/string_to_number_comparison
|
RFC: https://wiki.php.net/rfc/string_to_number_comparison
|
||||||
. Namespaced names can no longer contain whitespace: While `Foo\Bar` will be
|
. Namespaced names can no longer contain whitespace: While `Foo\Bar` will be
|
||||||
recognized as a namespaced name, `Foo \ Bar` will not. Conversely, reserved
|
recognized as a namespaced name, `Foo \ Bar` will not. Conversely, reserved
|
||||||
keywords are now permitted as namespace segments.
|
keywords are now permitted as namespace segments, which may also change the
|
||||||
|
interpretation of code: `new\x` is now the same as `constant('new\x')`, not
|
||||||
|
`new \x()`.
|
||||||
RFC: https://wiki.php.net/rfc/namespaced_names_as_token
|
RFC: https://wiki.php.net/rfc/namespaced_names_as_token
|
||||||
. Nested ternaries now require explicit parentheses.
|
. Nested ternaries now require explicit parentheses.
|
||||||
RFC: https://wiki.php.net/rfc/ternary_associativity
|
RFC: https://wiki.php.net/rfc/ternary_associativity
|
||||||
|
Loading…
Reference in New Issue
Block a user