Skip to content

Commit 0fcb229

Browse files
committed
avoid repeated declaration prefixes like 'static static static' for aliases etc.
1 parent afcc87e commit 0fcb229

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
@@ -2845,7 +2845,9 @@ function (FuncInfo $funcInfo) use($fileInfo, &$generatedFunctionDeclarations) {
28452845
}
28462846

28472847
$generatedFunctionDeclarations[$key] = true;
2848-
return $fileInfo->declarationPrefix . $funcInfo->getDeclaration();
2848+
if ($decl = $funcInfo->getDeclaration()) {
2849+
return $fileInfo->declarationPrefix . $decl;
2850+
}
28492851
}
28502852
);
28512853

@@ -3289,7 +3291,7 @@ function initPhpParser() {
32893291
}
32903292

32913293
$isInitialized = true;
3292-
$version = "4.13.0";
3294+
$version = "4.13.2";
32933295
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
32943296
if (!is_dir($phpParserDir)) {
32953297
installPhpParser($version, $phpParserDir);

0 commit comments

Comments
 (0)