diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-02-16 19:20:54 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-02-16 23:43:38 +0100 |
commit | c31029f335ca1b453af799805c43c37e959ad555 (patch) | |
tree | 15f57cdb50525d2f05e0016c795a1ca7a72e17b9 /ext/reflection/php_reflection.stub.php | |
parent | 6ee6097688a8c64e0e0ba166d48b16a93bf107a2 (diff) | |
download | php-git-c31029f335ca1b453af799805c43c37e959ad555.tar.gz |
Replace @param annotations with type declarations
Diffstat (limited to 'ext/reflection/php_reflection.stub.php')
-rw-r--r-- | ext/reflection/php_reflection.stub.php | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php index 76cbe75dd7..7b11913d7b 100644 --- a/ext/reflection/php_reflection.stub.php +++ b/ext/reflection/php_reflection.stub.php @@ -144,8 +144,7 @@ class ReflectionGenerator class ReflectionMethod extends ReflectionFunctionAbstract { - /** @param object|string $class_or_method */ - public function __construct($class_or_method, string $name = UNKNOWN) {} + public function __construct(object|string $class_or_method, string $name = UNKNOWN) {} /** @return string */ public function __toString() {} @@ -202,8 +201,7 @@ class ReflectionClass implements Reflector public static function export($argument, bool $return = false) {} - /** @param object|string $argument */ - public function __construct($argument) {} + public function __construct(object|string $argument) {} /** @return string */ public function __toString() {} @@ -376,8 +374,7 @@ class ReflectionProperty implements Reflector public static function export($class, $name, bool $return = false) {} - /** @param string|object $class */ - public function __construct($class, string $name) {} + public function __construct(string|object $class, string $name) {} /** @return string */ public function __toString() {} @@ -474,11 +471,7 @@ class ReflectionParameter implements Reflector public static function export($function, $parameter, bool $return = false) {} - /** - * @param string|array|object - * @param int|string - */ - public function __construct($function, $parameter) {} + public function __construct(string|array|object $function, int|string $parameter) {} /** @return string */ public function __toString() {} @@ -636,8 +629,7 @@ class ReflectionZendExtension implements Reflector final class ReflectionReference { - /** @param int|string $key */ - public static function fromArrayElement(array $array, $key): ?ReflectionReference {} + public static function fromArrayElement(array $array, int|string $key): ?ReflectionReference {} public function getId(): string {} |