From a1d8e525f0980690e89e08fadbd703bd7a538f45 Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Thu, 4 Sep 2025 11:56:12 +0300 Subject: [PATCH] gen_stub: drop unused parameter in `ConstInfo::getClassConstDeclaration()` --- build/gen_stub.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index ca14022cc52..ef24505796c 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -2759,7 +2759,7 @@ class ConstInfo extends VariableLike // Condition will be added by generateCodeWithConditions() if ($this->name instanceof ClassConstName) { - $code = $this->getClassConstDeclaration($value, $allConstInfos); + $code = $this->getClassConstDeclaration($value); } else { $code = $this->getGlobalConstDeclaration($value); } @@ -2820,12 +2820,10 @@ class ConstInfo extends VariableLike throw new Exception("Unimplemented constant type"); } - /** @param array $allConstInfos */ - private function getClassConstDeclaration(EvaluatedValue $value, array $allConstInfos): string + private function getClassConstDeclaration(EvaluatedValue $value): string { $constName = $this->name->getDeclarationName(); - // TODO $allConstInfos is unused $zvalCode = $value->initializeZval("const_{$constName}_value"); $code = "\n" . $zvalCode;