We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c141ee3 commit ae2e4b5Copy full SHA for ae2e4b5
UPGRADING
@@ -370,6 +370,12 @@ PHP 8.0 UPGRADE NOTES
370
. It is now possible to fetch the class name of an object using
371
`$object::class`. The result is the same as `get_class($object)`.
372
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
379
380
381
- Date:
0 commit comments