]> granicus.if.org Git - php/commitdiff
Add UPGRADING notes
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 11 Feb 2020 11:44:43 +0000 (12:44 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 11 Feb 2020 11:44:43 +0000 (12:44 +0100)
Not listing the details here, I think the RFC is a better reference
for the precise technical details.

[ci skip]

UPGRADING

index 945c4202008b47e1d791ce9b75b01a22bbbb9c70..574ab6a9639c9ff5d524c6cb2cd74d1cd9ee8a3d 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -370,6 +370,12 @@ PHP 8.0 UPGRADE NOTES
   . It is now possible to fetch the class name of an object using
     `$object::class`. The result is the same as `get_class($object)`.
     RFC: https://wiki.php.net/rfc/class_name_literal_on_object
+  . New and instanceof can now be used with arbitary expressions, using
+    `new (expression)(...$args)` and `$obj instanceof (expression)`.
+    RFC: https://wiki.php.net/rfc/variable_syntax_tweaks
+  . Some consistency fixes to variable syntax have been applied, for example
+    writing `Foo::BAR::$baz` is now allowed.
+    RFC: https://wiki.php.net/rfc/variable_syntax_tweaks
 
 
 - Date: