]> granicus.if.org Git - php/commitdiff
Add ReflectionMethod::getClosure() change to UPGRADING
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 4 Dec 2019 07:07:59 +0000 (08:07 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 4 Dec 2019 07:07:59 +0000 (08:07 +0100)
Fixes bug #78897.

[ci skip]

UPGRADING

index d9b46f2c381dab7b21016a5b96ea4b3fe4b7df85..3932b32e3ce69c53f9a9f549956443959567d077 100644 (file)
--- a/UPGRADING
+++ b/UPGRADING
@@ -110,6 +110,11 @@ PHP 7.4 UPGRADE NOTES
     to serialize them. Serialization for reflection objects was never
     supported and resulted in corrupted reflection objects. It has been
     explicitly prohibited now.
+  . The signature of the ReflectionMethod::getClosure() method changed to
+    account for existing behavior with static methods:
+        Before: ReflectionMethod::getClosure($object)
+        After: ReflectionMethod::getClosure($object = null)
+    The new signature is also (LSP) compatible with older PHP versions.
 
 - SPL:
   . Calling get_object_vars() on an ArrayObject instance will now always return