Skip to content

Commit 9533a81

Browse files
committed
Add ReflectionMethod::getClosure() change to UPGRADING
Fixes bug #78897. [ci skip]
1 parent 39b08ba commit 9533a81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

UPGRADING

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ PHP 7.4 UPGRADE NOTES
110110
to serialize them. Serialization for reflection objects was never
111111
supported and resulted in corrupted reflection objects. It has been
112112
explicitly prohibited now.
113+
. The signature of the ReflectionMethod::getClosure() method changed to
114+
account for existing behavior with static methods:
115+
Before: ReflectionMethod::getClosure($object)
116+
After: ReflectionMethod::getClosure($object = null)
117+
The new signature is also (LSP) compatible with older PHP versions.
113118

114119
- SPL:
115120
. Calling get_object_vars() on an ArrayObject instance will now always return

0 commit comments

Comments
 (0)