Skip to content

Commit e81ad40

Browse files
committed
Expand upgrading note for namespaced name change
Mention the case from bug #79942. [ci skip]
1 parent ee16316 commit e81ad40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

UPGRADING

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ PHP 8.0 UPGRADE NOTES
206206
RFC: https://wiki.php.net/rfc/string_to_number_comparison
207207
. Namespaced names can no longer contain whitespace: While `Foo\Bar` will be
208208
recognized as a namespaced name, `Foo \ Bar` will not. Conversely, reserved
209-
keywords are now permitted as namespace segments.
209+
keywords are now permitted as namespace segments, which may also change the
210+
interpretation of code: `new\x` is now the same as `constant('new\x')`, not
211+
`new \x()`.
210212
RFC: https://wiki.php.net/rfc/namespaced_names_as_token
211213
. Nested ternaries now require explicit parentheses.
212214
RFC: https://wiki.php.net/rfc/ternary_associativity

0 commit comments

Comments
 (0)