diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-10 11:19:35 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-10 11:20:07 +0200 |
commit | e81ad4089e7435bec8dc075089e9c47851b8ddb7 (patch) | |
tree | cc95f911cff1ef0a3288674bda9811126c57819d /UPGRADING | |
parent | ee163161480f4196d618036728f4765de7139068 (diff) | |
download | php-git-e81ad4089e7435bec8dc075089e9c47851b8ddb7.tar.gz |
Expand upgrading note for namespaced name change
Mention the case from bug #79942.
[ci skip]
Diffstat (limited to 'UPGRADING')
-rw-r--r-- | UPGRADING | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -206,7 +206,9 @@ PHP 8.0 UPGRADE NOTES RFC: https://wiki.php.net/rfc/string_to_number_comparison . Namespaced names can no longer contain whitespace: While `Foo\Bar` will be 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 . Nested ternaries now require explicit parentheses. RFC: https://wiki.php.net/rfc/ternary_associativity |