Skip to content

Commit 2ed5472

Browse files
gen_stub: make some FuncInfo methods private
* `FuncInfo::isFinalMethod()` * `FuncInfo::getModifierNames()` * `FuncInfo::equalsApartFromNameAndRefcount()`
1 parent 0b01640 commit 2ed5472

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/gen_stub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ public function isMethod(): bool
13791379
return $this->name instanceof MethodName;
13801380
}
13811381

1382-
public function isFinalMethod(): bool
1382+
private function isFinalMethod(): bool
13831383
{
13841384
return ($this->flags & Modifiers::FINAL) || ($this->classFlags & Modifiers::FINAL);
13851385
}
@@ -1390,7 +1390,7 @@ public function isInstanceMethod(): bool
13901390
}
13911391

13921392
/** @return string[] */
1393-
public function getModifierNames(): array
1393+
private function getModifierNames(): array
13941394
{
13951395
if (!$this->isMethod()) {
13961396
return [];
@@ -1430,7 +1430,7 @@ private function hasParamWithUnknownDefaultValue(): bool
14301430
return false;
14311431
}
14321432

1433-
public function equalsApartFromNameAndRefcount(FuncInfo $other): bool {
1433+
private function equalsApartFromNameAndRefcount(FuncInfo $other): bool {
14341434
if (count($this->args) !== count($other->args)) {
14351435
return false;
14361436
}

0 commit comments

Comments
 (0)