mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
gen_stub: make some FuncInfo methods private
* `FuncInfo::isFinalMethod()` * `FuncInfo::getModifierNames()` * `FuncInfo::equalsApartFromNameAndRefcount()`
This commit is contained in:
@@ -1379,7 +1379,7 @@ class FuncInfo {
|
||||
return $this->name instanceof MethodName;
|
||||
}
|
||||
|
||||
public function isFinalMethod(): bool
|
||||
private function isFinalMethod(): bool
|
||||
{
|
||||
return ($this->flags & Modifiers::FINAL) || ($this->classFlags & Modifiers::FINAL);
|
||||
}
|
||||
@@ -1390,7 +1390,7 @@ class FuncInfo {
|
||||
}
|
||||
|
||||
/** @return string[] */
|
||||
public function getModifierNames(): array
|
||||
private function getModifierNames(): array
|
||||
{
|
||||
if (!$this->isMethod()) {
|
||||
return [];
|
||||
@@ -1430,7 +1430,7 @@ class FuncInfo {
|
||||
return false;
|
||||
}
|
||||
|
||||
public function equalsApartFromNameAndRefcount(FuncInfo $other): bool {
|
||||
private function equalsApartFromNameAndRefcount(FuncInfo $other): bool {
|
||||
if (count($this->args) !== count($other->args)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user