summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.stub.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-04-03 16:49:11 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-04-03 17:59:30 +0200
commit2bcc4ab8f4422f319b509b8fd5bd251d9326c604 (patch)
tree689f8ba253cc8b4b43454ce70270e0cd0ae69e40 /ext/reflection/php_reflection.stub.php
parentd2c92d7fd326b011b509b6daedee5f4e035fcae1 (diff)
downloadphp-git-2bcc4ab8f4422f319b509b8fd5bd251d9326c604.tar.gz
Verify that all stubs have a return type
Diffstat (limited to 'ext/reflection/php_reflection.stub.php')
-rw-r--r--ext/reflection/php_reflection.stub.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php
index 05e1b0490d..b96a4f65e9 100644
--- a/ext/reflection/php_reflection.stub.php
+++ b/ext/reflection/php_reflection.stub.php
@@ -104,8 +104,10 @@ class ReflectionFunction extends ReflectionFunctionAbstract
/** @return bool */
public function isDisabled() {}
+ /** @return mixed */
public function invoke(...$args) {}
+ /** @return mixed */
public function invokeArgs(array $args) {}
/** @return Closure */
@@ -172,8 +174,10 @@ class ReflectionMethod extends ReflectionFunctionAbstract
/** @return int */
public function getModifiers() {}
+ /** @return mixed */
public function invoke(?object $object = null, ...$args) {}
+ /** @return mixed */
public function invokeArgs(?object $object, array $args) {}
/** @return ReflectionClass */
@@ -255,6 +259,7 @@ class ReflectionClass implements Reflector
/** @return ReflectionClassConstant[] */
public function getReflectionConstants() {}
+ /** @return mixed */
public function getConstant(string $name) {}
/** @return ReflectionClassConstant|false */
@@ -314,6 +319,7 @@ class ReflectionClass implements Reflector
/** @return ?array */
public function getStaticProperties() {}
+ /** @return mixed */
public function getStaticPropertyValue(string $name, $default = UNKNOWN) {}
/** @return void */
@@ -367,6 +373,7 @@ class ReflectionProperty implements Reflector
/** @return string|false */
public function getName() {}
+ /** @return mixed */
public function getValue(?object $object = null) {}
/** @return void */
@@ -426,6 +433,7 @@ class ReflectionClassConstant implements Reflector
/** @return string|false */
public function getName() {}
+ /** @return mixed */
public function getValue() {}
/** @return bool */
@@ -501,6 +509,7 @@ class ReflectionParameter implements Reflector
/** @return bool */
public function isDefaultValueAvailable() {}
+ /** @return mixed */
public function getDefaultValue() {}
/** @return bool */