diff --git a/lib/PhpParser/PrettyPrinter/Standard.php b/lib/PhpParser/PrettyPrinter/Standard.php index 41095b2..daab71e 100644 --- a/lib/PhpParser/PrettyPrinter/Standard.php +++ b/lib/PhpParser/PrettyPrinter/Standard.php @@ -638,7 +638,7 @@ class Standard extends PrettyPrinterAbstract . '(' . $this->pCommaSeparated($node->params) . ')' . (null !== $node->returnType ? ': ' . $this->p($node->returnType) : '') . ' => ' - . $this->p($node->expr); + . $this->pDereferenceLhs($node->expr); } protected function pExpr_ClosureUse(Expr\ClosureUse $node) {