summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.stub.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-04-07 16:42:40 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-04-07 16:42:40 +0200
commit07e739a2d5ddbe7618e748f6d0ab5aeca8cf880c (patch)
tree8754b3aa76283319fa414d0bcbb17480cecf708b /ext/reflection/php_reflection.stub.php
parentab73d142c98d2f9813fbe9ddf2c59f415c0692fc (diff)
downloadphp-git-07e739a2d5ddbe7618e748f6d0ab5aeca8cf880c.tar.gz
Remove most uses of _default_get_name()
Instead fetch the name from the respective structure. The only place where this is still used is ReflectionClassConst, as zend_class_const does not store the name.
Diffstat (limited to 'ext/reflection/php_reflection.stub.php')
-rw-r--r--ext/reflection/php_reflection.stub.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php
index 1fc1442f0f..84d2c30779 100644
--- a/ext/reflection/php_reflection.stub.php
+++ b/ext/reflection/php_reflection.stub.php
@@ -60,7 +60,7 @@ abstract class ReflectionFunctionAbstract implements Reflector
/** @return string|false */
public function getFileName() {}
- /** @return string|false */
+ /** @return string */
public function getName() {}
/** @return string */
@@ -199,7 +199,7 @@ class ReflectionClass implements Reflector
public function __toString(): string {}
- /** @return string|false */
+ /** @return string */
public function getName() {}
/** @return bool */
@@ -370,7 +370,7 @@ class ReflectionProperty implements Reflector
public function __toString(): string {}
- /** @return string|false */
+ /** @return string */
public function getName() {}
/** @return mixed */
@@ -467,7 +467,7 @@ class ReflectionParameter implements Reflector
public function __toString(): string {}
- /** @return string|false */
+ /** @return string */
public function getName() {}
/** @return bool */
@@ -554,7 +554,7 @@ class ReflectionExtension implements Reflector
public function __toString(): string {}
- /** @return string|false */
+ /** @return string */
public function getName() {}
/** @return ?string */