summaryrefslogtreecommitdiff
path: root/UPGRADING
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-10-28 13:24:07 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-10-28 13:24:07 +0100
commit87fefd165a29091c3cb462431529107189c12d55 (patch)
tree1750f551b87427692cf2bd61d0bd46959b0d487b /UPGRADING
parent26579db403bbcbb96634bf59dd168a4916f172f5 (diff)
downloadphp-git-87fefd165a29091c3cb462431529107189c12d55.tar.gz
Remove ability to unbind $this of closures if used
This was deprecated in PHP 7.4, removing it for PHP 8.0.
Diffstat (limited to 'UPGRADING')
-rw-r--r--UPGRADING2
1 files changed, 2 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index 8ef0d14117..ba32d55eef 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -39,6 +39,8 @@ PHP 8.0 UPGRADE NOTES
. Removed each(). foreach or ArrayIterator should be used instead.
. Removed ability to unbind $this from closures that were created from a
method, using Closure::fromCallable() or ReflectionMethod::getClosure().
+ . Also removed ability to unbind $this from proper closures that contain uses
+ of $this.
. Any array that has a number n as its first numeric key will use n+1 for
its next implicit key. Even if n is negative.
RFC: https://wiki.php.net/rfc/negative_array_index