Update to nikic/php-parser 4.13.1 (#1253)

This commit is contained in:
Abdul Malik Ikhsan 2021-11-17 14:00:55 +07:00 committed by GitHub
parent 6aa78f9e4e
commit f0b639bbaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View File

@ -18,7 +18,7 @@
"idiosyncratic/editorconfig": "^0.1.3",
"myclabs/php-enum": "^1.8",
"nette/utils": "^3.2",
"nikic/php-parser": "4.13.0",
"nikic/php-parser": "4.13.1",
"phpstan/phpdoc-parser": "^1.2",
"phpstan/phpstan": "^1.1.1",
"phpstan/phpstan-phpunit": "^1.0",

View File

@ -74,12 +74,14 @@ CODE_SAMPLE
return null;
}
$arrowFunction = new ArrowFunction();
$arrowFunction->params = $node->params;
$arrowFunction->returnType = $node->returnType;
$arrowFunction->byRef = $node->byRef;
$arrowFunction->expr = $returnExpr;
$arrowFunction = new ArrowFunction(
[
'params' => $node->params,
'returnType' => $node->returnType,
'byRef' => $node->byRef,
'expr' => $returnExpr,
]
);
if ($node->static) {
$arrowFunction->static = true;