From 9533a815d50df3f916b133ca7d9885c3d0d8ff92 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 4 Dec 2019 08:07:59 +0100 Subject: Add ReflectionMethod::getClosure() change to UPGRADING Fixes bug #78897. [ci skip] --- UPGRADING | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UPGRADING b/UPGRADING index d9b46f2c38..3932b32e3c 100644 --- 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 -- cgit v1.2.1