Fixed ArrowFunction::$expr

This commit is contained in:
Jaroslav Hanslík 2021-09-15 23:51:33 +02:00 committed by Nikita Popov
parent f6e1fbf3a2
commit 8da6d7ac62

View File

@ -42,7 +42,7 @@ class ArrowFunction extends Expr implements FunctionLike
$this->params = $subNodes['params'] ?? [];
$returnType = $subNodes['returnType'] ?? null;
$this->returnType = \is_string($returnType) ? new Node\Identifier($returnType) : $returnType;
$this->expr = $subNodes['expr'] ?? null;
$this->expr = $subNodes['expr'];
$this->attrGroups = $subNodes['attrGroups'] ?? [];
}