File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments