Skip to content

Commit 1962463

Browse files
gen_stub: make some FuncInfo methods private
* `FuncInfo::isFinalMethod()` * `FuncInfo::getModifierNames()` * `FuncInfo::equalsApartFromNameAndRefcount()`
1 parent f7ee2d1 commit 1962463

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
@@ -1381,7 +1381,7 @@ public function isMethod(): bool
13811381
return $this->name instanceof MethodName;
13821382
}
13831383

1384-
public function isFinalMethod(): bool
1384+
private function isFinalMethod(): bool
13851385
{
13861386
return ($this->flags & Modifiers::FINAL) || ($this->classFlags & Modifiers::FINAL);
13871387
}
@@ -1392,7 +1392,7 @@ public function isInstanceMethod(): bool
13921392
}
13931393

13941394
/** @return string[] */
1395-
public function getModifierNames(): array
1395+
private function getModifierNames(): array
13961396
{
13971397
if (!$this->isMethod()) {
13981398
return [];
@@ -1432,7 +1432,7 @@ private function hasParamWithUnknownDefaultValue(): bool
14321432
return false;
14331433
}
14341434

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

0 commit comments

Comments
 (0)