From: Benjamin Eberlei Date: Wed, 2 Sep 2020 18:32:52 +0000 (+0200) Subject: Update NEWS, UPGRADING X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=842be67b60d302f5629af0838a31432d32d66ce7;p=php Update NEWS, UPGRADING --- diff --git a/NEWS b/NEWS index 590ddd3226..045e7b72f0 100644 --- 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 diff --git a/UPGRADING b/UPGRADING index 2412b60865..d18bc98eeb 100644 --- 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