Commit a1d8e525f09 for php.net
commit a1d8e525f0980690e89e08fadbd703bd7a538f45
Author: Daniel Scherzer <daniel.e.scherzer@gmail.com>
Date: Thu Sep 4 11:56:12 2025 +0300
gen_stub: drop unused parameter in `ConstInfo::getClassConstDeclaration()`
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 @@ public function getDeclaration(array $allConstInfos): string
// 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 @@ private function getGlobalConstDeclaration(EvaluatedValue $value): string
throw new Exception("Unimplemented constant type");
}
- /** @param array<string, ConstInfo> $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;