8000 Store default values of parameters of internal functions in arginfo by kocsismate · Pull Request #5353 · php/php-src · GitHub
[go: up one dir, main page]

Skip to content

Store default values of parameters of internal functions in arginfo #5353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 14 commits into from
Closed
Prev Previous commit
Next Next commit
Fix typo
  • Loading branch information
nikic committed Apr 8, 2020
commit 7cf585260f79ba02903dc2d07dbb4eb61310f1b3
4 changes: 2 additions & 2 deletions build/gen_stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ function parseDocComment(DocComment $comment): array {
}

function parseFunctionLike(
PrettyPrinterAbstract $prettyPinter, string $name, ?string $className, Node\FunctionLike $func, ?string $cond
PrettyPrinterAbstract $prettyPrinter, string $name, ?string $className, Node\FunctionLike $func, ?string $cond
): FuncInfo {
$comment = $func->getDocComment();
$paramMeta = [];
Expand Down Expand Up @@ -521,7 +521,7 @@ function parseFunctionLike(
$sendBy,
$param->variadic,
$type,
$param->default ? $prettyPinter->prettyPrintExpr($param->default) : null
$param->default ? $prettyPrinter->prettyPrintExpr($param->default) : null
);
if (!$param->default && !$param->variadic) {
$numRequiredArgs = $i + 1;
Expand Down
0