Skip to content

Commit

Permalink
avoid repeated declaration prefixes like 'static static static' for a…
Browse files Browse the repository at this point in the history
…liases etc.
  • Loading branch information
m6w6 committed Jan 7, 2022
1 parent b197e52 commit 930889a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/gen_stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,9 @@ function (FuncInfo $funcInfo) use($fileInfo, &$generatedFunctionDeclarations) {
}

$generatedFunctionDeclarations[$key] = true;
return $fileInfo->declarationPrefix . $funcInfo->getDeclaration();
if ($decl = $funcInfo->getDeclaration()) {
return $fileInfo->declarationPrefix . $decl;
}
}
);

Expand Down Expand Up @@ -3289,7 +3291,7 @@ function initPhpParser() {
}

$isInitialized = true;
$version = "4.13.0";
$version = "4.13.2";
$phpParserDir = __DIR__ . "/PHP-Parser-$version";
if (!is_dir($phpParserDir)) {
installPhpParser($version, $phpParserDir);
Expand Down

0 comments on commit 930889a

Please sign in to comment.