summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorTheodore Brown <theodorejb@outlook.com>2020-07-02 09:56:21 -0600
committerNikita Popov <nikita.ppv@gmail.com>2020-07-28 15:28:57 +0200
commit470d1696d9a4057ab72b90941556f78990f61692 (patch)
tree30dc7f275ad3749fe3aff5bc862bc3b67f016e8f /UPGRADING
parent44ad2db15fe786b07ce793624885e0c43e0af897 (diff)
downloadphp-git-470d1696d9a4057ab72b90941556f78990f61692.tar.gz
Implement Shorter Attribute Syntax
RFC: https://wiki.php.net/rfc/shorter_attribute_syntax Closes GH-5796. Co-authored-by: Martin Schröder <m.schroeder2007@gmail.com>
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING5
1 files changed, 5 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index 7a9c92ee65..6eca850664 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -78,6 +78,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
. Inheritance errors due to incompatible method signatures (LSP violations)
will now always generate a fatal error. Previously a warning was generated
in some cases.
@@ -605,6 +609,7 @@ PHP 8.0 UPGRADE NOTES
. Added support for Attributes
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
. Added support for constructor property promotion (declaring properties in
the constructor signature).
RFC: https://wiki.php.net/rfc/constructor_promotion