com php-src: Fix and make reflection arginfo stubs more specific: ext/reflection/reflection.stub.php
| From: | Christoph Michael Becker | Date: | Sat, 26 Oct 2019 14:17:02 +0000 |
| Subject: | com php-src: Fix and make reflection arginfo stubs more specific: ext/reflection/reflection.stub.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109072@lists.php.net to get a copy of this message | ||
Commit: b823864926a2726c16d51345b7b32203c25eaf09
Author: Christoph M. Becker <cmbecker69@gmx.de> Sat, 26 Oct 2019 16:15:19 +0200
Parents: 8a88f72bebf66df77325066be1dab08a5ea24ced
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b823864926a2726c16d51345b7b32203c25eaf09
Log:
Fix and make reflection arginfo stubs more specific
Changed paths:
M ext/reflection/reflection.stub.php
Diff:
diff --git a/ext/reflection/reflection.stub.php b/ext/reflection/reflection.stub.php
index a229d3a8f56..bfd5f0caf95 100644
--- a/ext/reflection/reflection.stub.php
+++ b/ext/reflection/reflection.stub.php
@@ -6,7 +6,7 @@ class ReflectionException extends Exception
class Reflection
{
- /** @return array */
+ /** @return string[] */
public static function getModifierNames(int $modifiers) {}
public static function export(Reflector $reflector, bool $return = false) {}
@@ -43,7 +43,7 @@ abstract class ReflectionFunctionAbstract implements Reflector
/** @return bool */
public function isVariadic() {}
- /** @return ?Closure */
+ /** @return ?object */
public function getClosureThis() {}
/** @return ?ReflectionClass */
@@ -76,7 +76,7 @@ abstract class ReflectionFunctionAbstract implements Reflector
/** @return int */
public function getNumberOfRequiredParameters() {}
- /** @return array */
+ /** @return ReflectionParameter[] */
public function getParameters() {}
/** @return string|false */
@@ -247,7 +247,7 @@ class ReflectionClass implements Reflector
/** @return ReflectionMethod */
public function getMethod(string $name) {}
- /** @return array */
+ /** @return ReflectionMethod[] */
public function getMethods(?int $filter = null) {}
/** @return bool */
@@ -256,7 +256,7 @@ class ReflectionClass implements Reflector
/** @return ReflectionProperty */
public function getProperty(string $name) {}
- /** @return array */
+ /** @return ReflectionProperty[] */
public function getProperties(?int $filter = null) {}
/** @return bool */
@@ -265,7 +265,7 @@ class ReflectionClass implements Reflector
/** @return ?array */
public function getConstants() {}
- /** @return array */
+ /** @return ReflectionClassConstant[] */
public function getReflectionConstants() {}
public function getConstant(string $name) {}
@@ -273,22 +273,22 @@ class ReflectionClass implements Reflector
/** @return ReflectionClassConstant|false */
public function getReflectionConstant(string $name) {}
- /** @return array */
+ /** @return ReflectionClass[] */
public function getInterfaces() {}
- /** @return array */
+ /** @return string[] */
public function getInterfaceNames() {}
/** @return bool */
public function isInterface() {}
- /** @return array */
+ /** @return ReflectionClass[] */
public function getTraits() {}
- /** @return array */
+ /** @return string[] */
public function getTraitNames() {}
- /** @return array */
+ /** @return string[] */
public function getTraitAliases() {}
/** @return bool */
@@ -569,7 +569,7 @@ class ReflectionExtension implements Reflector
/** @return ?string */
public function getVersion() {}
- /** @return array */
+ /** @return ReflectionFunction[] */
public function getFunctions() {}
/** @return array */
@@ -578,10 +578,10 @@ class ReflectionExtension implements Reflector
/** @return array */
public function getINIEntries() {}
- /** @return array */
+ /** @return ReflectionClass[] */
public function getClasses() {}
- /** @return array */
+ /** @return string[] */
public function getClassNames() {}
/** @return array */