diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-09 02:21:51 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-09-11 10:59:13 +0200 |
commit | a59923befde4969eb619e90ed618a8eb89dcdef7 (patch) | |
tree | c12b408a76d73dbab812c141b39cbf082b513b51 /ext/reflection/php_reflection.stub.php | |
parent | f33fd9b7fec635ca155c22cfa26b0592a2046ce9 (diff) | |
download | php-git-a59923befde4969eb619e90ed618a8eb89dcdef7.tar.gz |
Refactor ReflectionMethod::__construct()
Closes GH-6098
Diffstat (limited to 'ext/reflection/php_reflection.stub.php')
-rw-r--r-- | ext/reflection/php_reflection.stub.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php index 311e748e9b..d1ba2cf624 100644 --- a/ext/reflection/php_reflection.stub.php +++ b/ext/reflection/php_reflection.stub.php @@ -147,8 +147,7 @@ final class ReflectionGenerator class ReflectionMethod extends ReflectionFunctionAbstract { - /** @param object|string $objectOrMethod */ - public function __construct($objectOrMethod, string $method = UNKNOWN) {} + public function __construct(object|string $objectOrMethod, ?string $method = null) {} public function __toString(): string {} |