Skip to content

Commit ae2e4b5

Browse files
committed
Add UPGRADING notes
Not listing the details here, I think the RFC is a better reference for the precise technical details. [ci skip]
1 parent c141ee3 commit ae2e4b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

UPGRADING

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,12 @@ PHP 8.0 UPGRADE NOTES
370370
. It is now possible to fetch the class name of an object using
371371
`$object::class`. The result is the same as `get_class($object)`.
372372
RFC: https://wiki.php.net/rfc/class_name_literal_on_object
373+
. New and instanceof can now be used with arbitary expressions, using
374+
`new (expression)(...$args)` and `$obj instanceof (expression)`.
375+
RFC: https://wiki.php.net/rfc/variable_syntax_tweaks
376+
. Some consistency fixes to variable syntax have been applied, for example
377+
writing `Foo::BAR::$baz` is now allowed.
378+
RFC: https://wiki.php.net/rfc/variable_syntax_tweaks
373379

374380

375381
- Date:

0 commit comments

Comments
 (0)