summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-01-04 11:55:41 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-01-04 11:55:41 +0100
commita9e6667817c38f22f4645ec5b4e5c6b0e4b928fa (patch)
tree12f29126298bda333f598c284d0aab2cdab1b715 /UPGRADING
parent447b3470de43bf2435ad5a138a964c2f2c4fc4a6 (diff)
downloadphp-git-a9e6667817c38f22f4645ec5b4e5c6b0e4b928fa.tar.gz
Detect invalid uses of parent:: during compilation
We already detect the case where we're entirely outside a class -- now also check whether there actually is a parent. This is a minor BC break, in that code that was never executed might have previously contained an invalid parent:: reference without generating an error.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING5
1 files changed, 5 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index df747d28ae..ce157fc702 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -20,6 +20,11 @@ PHP 7.4 UPGRADE NOTES
1. Backward Incompatible Changes
========================================
+- Core:
+ . Referencing parent:: inside a class that does not have a parent will now
+ generate a compile-time error. Previously the error was only emitted at
+ run-time.
+
- Curl:
. Attempting to serialize a CURLFile class will now generate an exception.
Previously the exception was only thrown on unserialization.