Skip to content

Commit 5e597c3

Browse files
gen_stub: make some FuncInfo methods private
* `FuncInfo::isFinalMethod()` * `FuncInfo::getModifierNames()` * `FuncInfo::equalsApartFromNameAndRefcount()`
1 parent d09d831 commit 5e597c3

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
@@ -1378,7 +1378,7 @@ public function isMethod(): bool
13781378
return $this->name instanceof MethodName;
13791379
}
13801380

1381-
public function isFinalMethod(): bool
1381+
private function isFinalMethod(): bool
13821382
{
13831383
return ($this->flags & Modifiers::FINAL) || ($this->classFlags & Modifiers::FINAL);
13841384
}
@@ -1389,7 +1389,7 @@ public function isInstanceMethod(): bool
13891389
}
13901390

13911391
/** @return string[] */
1392-
public function getModifierNames(): array
1392+
private function getModifierNames(): array
13931393
{
13941394
if (!$this->isMethod()) {
13951395
return [];
@@ -1429,7 +1429,7 @@ private function hasParamWithUnknownDefaultValue(): bool
14291429
return false;
14301430
}
14311431

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

0 commit comments

Comments
 (0)