mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-26 12:04:39 +01:00
Properly parenthesise arrow functions
This commit is contained in:
parent
c83d2cda80
commit
79ec0bd1bd
@ -646,7 +646,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user