summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-07-28 23:00:44 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-07-30 14:26:45 +0200
commit0d330e1a022d536de8a679d11dc8ec6f9fd64be3 (patch)
treea4b93785096169cca4ba3bb9109040311b374944 /ext/reflection/php_reflection.stub.php
parent41de27ecc239e3a7de50446be297e288bb934505 (diff)
downloadphp-git-0d330e1a022d536de8a679d11dc8ec6f9fd64be3.tar.gz
Add a few missing parameter types in stubs
Related to GH-5627
Diffstat (limited to 'ext/reflection/php_reflection.stub.php')
-rw-r--r--ext/reflection/php_reflection.stub.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php
index 58da7ebeee..539520597f 100644
--- a/ext/reflection/php_reflection.stub.php
+++ b/ext/reflection/php_reflection.stub.php
@@ -177,7 +177,7 @@ class ReflectionMethod extends ReflectionFunctionAbstract
public function isDestructor() {}
/** @return Closure */
- public function getClosure($object = UNKNOWN) {}
+ public function getClosure(?object $object = null) {}
/** @return int */
public function getModifiers() {}
@@ -325,10 +325,10 @@ class ReflectionClass implements Reflector
public function getStaticProperties() {}
/** @return mixed */
- public function getStaticPropertyValue(string $name, $default = UNKNOWN) {}
+ public function getStaticPropertyValue(string $name, mixed $default = UNKNOWN) {}
/** @return void */
- public function setStaticPropertyValue(string $name, $value) {}
+ public function setStaticPropertyValue(string $name, mixed $value) {}
/** @return array */
public function getDefaultProperties() {}
@@ -385,7 +385,7 @@ class ReflectionProperty implements Reflector
public function getValue(?object $object = null) {}
/** @return void */
- public function setValue($objectOrValue, $value = UNKNOWN) {}
+ public function setValue(mixed $objectOrValue, mixed $value = UNKNOWN) {}
/** @return bool */
public function isInitialized(?object $object = null) {}