We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 610815c commit d5bbb28Copy full SHA for d5bbb28
build/gen_stub.php
@@ -743,7 +743,6 @@ function generateCodeWithConditions(
743
}
744
745
function generateArgInfoCode(FileInfo $fileInfo): string {
746
- $generatedDeclarations = [];
747
$funcInfos = $fileInfo->funcInfos;
748
749
$code = "/* This is a generated file, edit the .stub.php file instead. */\n";
@@ -768,6 +767,7 @@ function(FuncInfo $funcInfo) use(&$generatedFuncInfos) {
768
767
769
if ($fileInfo->generateFunctionEntries) {
770
$code .= "\n\n";
+ $generatedDeclarations = [];
771
$code .= generateCodeWithConditions($funcInfos, "", function(FuncInfo $funcInfo) use (&$generatedDeclarations) {
772
$name = $funcInfo->alias ?? $funcInfo->name;
773
$key = "$name|$funcInfo->cond";
0 commit comments