1
0
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:
Daniel Scherzer
2025-05-15 14:01:13 -04:00
parent 0b01640b58
commit 2ed5472f06

View File

@@ -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;
}