diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-10 11:05:26 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-10 11:05:26 +0100 |
commit | 42fbc76d9cee94241e56c82a8550ee6221d0f239 (patch) | |
tree | 8609d3a2538dd70893e5d8902bab91fbe8df97ff /ext/reflection/php_reflection.stub.php | |
parent | 87f127d8fa7b03e8f32962fc720da5df1a505fa5 (diff) | |
download | php-git-42fbc76d9cee94241e56c82a8550ee6221d0f239.tar.gz |
Always invoke zpp in ReflectionProperty::getValue/isInitialized
Make sure we still perform a zpp check for the static case, and
also always enforce that the parameter is ?object. Otherwise we
violate the specified signature.
Diffstat (limited to 'ext/reflection/php_reflection.stub.php')
-rw-r--r-- | ext/reflection/php_reflection.stub.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php index 26e38ae37f..76cbe75dd7 100644 --- a/ext/reflection/php_reflection.stub.php +++ b/ext/reflection/php_reflection.stub.php @@ -391,7 +391,7 @@ class ReflectionProperty implements Reflector public function setValue($object_or_value, $value = UNKNOWN) {} /** @return bool */ - public function isInitialized(object $object = UNKNOWN) {} + public function isInitialized(?object $object = null) {} /** @return bool */ public function isPublic() {} |