Skip to content

Commit 2f8a1dd

Browse files
committed
avoid repeated declaration prefixes like 'static static static' for aliases etc.
1 parent 822959e commit 2f8a1dd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build/gen_stub.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,7 +2853,9 @@ function (FuncInfo $funcInfo) use($fileInfo, &$generatedFunctionDeclarations) {
28532853
}
28542854

28552855
$generatedFunctionDeclarations[$key] = true;
2856-
return $fileInfo->declarationPrefix . $funcInfo->getDeclaration();
2856+
if ($decl = $funcInfo->getDeclaration()) {
2857+
return $fileInfo->declarationPrefix . $decl;
2858+
}
28572859
}
28582860
);
28592861

@@ -3299,7 +3301,7 @@ function initPhpParser() {
32993301
}
33003302

33013303
$isInitialized = true;
3302-
$version = "4.13.0";
3304+
$version = "4.13.2";
33033305
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
33043306
if (!is_dir($phpParserDir)) {
33053307
installPhpParser($version, $phpParserDir);

0 commit comments

Comments
 (0)