Skip to content

Commit 842be67

Browse files
committed
Update NEWS, UPGRADING
1 parent 8b37c1e commit 842be67

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.0.0rc1
44

5+
- Core:
6+
. Implement #[Attr] Attribute syntax as per final vote in RFC
7+
https://wiki.php.net/rfc/shorter_attribute_syntax_change
58

69
03 Sep 2020, PHP 8.0.0beta3
710

UPGRADING

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ PHP 8.0 UPGRADE NOTES
8181
Additionally, care should be taken that error messages are not displayed in
8282
production environments, which can result in information leaks. Please
8383
ensure that display_errors=Off is used in conjunction with error logging.
84-
. Adding more than one @ operator to an expression is no longer supported,
85-
since this syntax is now used for attributes (previously extra @ operators
86-
had no effect).
87-
RFC: https://wiki.php.net/rfc/shorter_attribute_syntax
84+
. Following the hash comment operator # immediately with an opening bracket
85+
is not supported as a comment anymore since this syntax is now used for
86+
attributes.
87+
RFC: https://wiki.php.net/rfc/shorter_attribute_syntax_change
8888
. Inheritance errors due to incompatible method signatures (LSP violations)
8989
will now always generate a fatal error. Previously a warning was generated
9090
in some cases.
@@ -687,6 +687,7 @@ PHP 8.0 UPGRADE NOTES
687687
RFC: https://wiki.php.net/rfc/attributes_v2
688688
RFC: https://wiki.php.net/rfc/attribute_amendments
689689
RFC: https://wiki.php.net/rfc/shorter_attribute_syntax
690+
RFC: https://wiki.php.net/rfc/shorter_attribute_syntax_change
690691
. Added support for constructor property promotion (declaring properties in
691692
the constructor signature).
692693
RFC: https://wiki.php.net/rfc/constructor_promotion

0 commit comments

Comments
 (0)