1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00

Add ReflectionMethod::getClosure() change to UPGRADING

Fixes bug #78897.

[ci skip]
This commit is contained in:
Nikita Popov
2019-12-04 08:07:59 +01:00
parent 39b08ba99c
commit 9533a815d5

View File

@@ -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