]> granicus.if.org Git - php/commitdiff
Update NEWS, UPGRADING
authorBenjamin Eberlei <kontakt@beberlei.de>
Wed, 2 Sep 2020 18:32:52 +0000 (20:32 +0200)
committerBenjamin Eberlei <kontakt@beberlei.de>
Wed, 2 Sep 2020 18:32:52 +0000 (20:32 +0200)
NEWS
UPGRADING

diff --git a/NEWS b/NEWS
index 590ddd322676815aa3f810cac1660927ea554be4..045e7b72f00091330e4316f8d77a870da32aaf92 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? ????, PHP 8.0.0rc1
 
+- Core:
+  . Implement #[Attr] Attribute syntax as per final vote in RFC
+    https://wiki.php.net/rfc/shorter_attribute_syntax_change
 
 03 Sep 2020, PHP 8.0.0beta3
 
index 2412b60865f5ee4dbc1132fed567bce5237af62a..d18bc98eeb0e5d4a26b8073cec7034afc81c63d4 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -81,10 +81,10 @@ PHP 8.0 UPGRADE NOTES
     Additionally, care should be taken that error messages are not displayed in
     production environments, which can result in information leaks. Please
     ensure that display_errors=Off is used in conjunction with error logging.
-  . Adding more than one @ operator to an expression is no longer supported,
-    since this syntax is now used for attributes (previously extra @ operators
-    had no effect).
-    RFC: https://wiki.php.net/rfc/shorter_attribute_syntax
+  . Following the hash comment operator # immediately with an opening bracket
+    is not supported as a comment anymore since this syntax is now used for
+    attributes.
+    RFC: https://wiki.php.net/rfc/shorter_attribute_syntax_change
   . Inheritance errors due to incompatible method signatures (LSP violations)
     will now always generate a fatal error. Previously a warning was generated
     in some cases.
@@ -687,6 +687,7 @@ PHP 8.0 UPGRADE NOTES
     RFC: https://wiki.php.net/rfc/attributes_v2
     RFC: https://wiki.php.net/rfc/attribute_amendments
     RFC: https://wiki.php.net/rfc/shorter_attribute_syntax
+    RFC: https://wiki.php.net/rfc/shorter_attribute_syntax_change
   . Added support for constructor property promotion (declaring properties in
     the constructor signature).
     RFC: https://wiki.php.net/rfc/constructor_promotion