summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-09-09 02:21:51 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-09-11 10:59:13 +0200
commita59923befde4969eb619e90ed618a8eb89dcdef7 (patch)
treec12b408a76d73dbab812c141b39cbf082b513b51 /ext/reflection/php_reflection.stub.php
parentf33fd9b7fec635ca155c22cfa26b0592a2046ce9 (diff)
downloadphp-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.php3
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 {}