Skip to content

Commit 0b01640

Browse files
gen_stub: replace FunctionOrMethodName::isMethod() with instanceof
1 parent 49f1685 commit 0b01640

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

build/gen_stub.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,6 @@ public function getArgInfoName(): string;
955955
public function getMethodSynopsisFilename(): string;
956956
public function getNameForAttributes(): string;
957957
public function __toString(): string;
958-
public function isMethod(): bool;
959958
public function isConstructor(): bool;
960959
public function isDestructor(): bool;
961960
}
@@ -1018,10 +1017,6 @@ public function __toString(): string {
10181017
return $this->name->toString();
10191018
}
10201019

1021-
public function isMethod(): bool {
1022-
return false;
1023-
}
1024-
10251020
public function isConstructor(): bool {
10261021
return false;
10271022
}
@@ -1067,10 +1062,6 @@ public function __toString(): string {
10671062
return "$this->className::$this->methodName";
10681063
}
10691064

1070-
public function isMethod(): bool {
1071-
return true;
1072-
}
1073-
10741065
public function isConstructor(): bool {
10751066
return $this->methodName === "__construct";
10761067
}
@@ -1385,7 +1376,7 @@ public function __construct(
13851376

13861377
public function isMethod(): bool
13871378
{
1388-
return $this->name->isMethod();
1379+
return $this->name instanceof MethodName;
13891380
}
13901381

13911382
public function isFinalMethod(): bool

0 commit comments

Comments
 (0)