mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 17:00:51 +00:00
Update to nikic/php-parser 4.13.1 (#1253)
This commit is contained in:
parent
6aa78f9e4e
commit
f0b639bbaa
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user