Skip to content

Commit a1d8e52

Browse files
gen_stub: drop unused parameter in ConstInfo::getClassConstDeclaration()
1 parent a8543df commit a1d8e52

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

build/gen_stub.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2759,7 +2759,7 @@ public function getDeclaration(array $allConstInfos): string
27592759
// Condition will be added by generateCodeWithConditions()
27602760

27612761
if ($this->name instanceof ClassConstName) {
2762-
$code = $this->getClassConstDeclaration($value, $allConstInfos);
2762+
$code = $this->getClassConstDeclaration($value);
27632763
} else {
27642764
$code = $this->getGlobalConstDeclaration($value);
27652765
}
@@ -2820,12 +2820,10 @@ private function getGlobalConstDeclaration(EvaluatedValue $value): string
28202820
throw new Exception("Unimplemented constant type");
28212821
}
28222822

2823-
/** @param array<string, ConstInfo> $allConstInfos */
2824-
private function getClassConstDeclaration(EvaluatedValue $value, array $allConstInfos): string
2823+
private function getClassConstDeclaration(EvaluatedValue $value): string
28252824
{
28262825
$constName = $this->name->getDeclarationName();
28272826

2828-
// TODO $allConstInfos is unused
28292827
$zvalCode = $value->initializeZval("const_{$constName}_value");
28302828

28312829
$code = "\n" . $zvalCode;

0 commit comments

Comments
 (0)