mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
Properly parenthesise arrow functions
This commit is contained in:
parent
9407d9a4b9
commit
a9282514c8
@ -638,7 +638,7 @@ class Standard extends PrettyPrinterAbstract
|
|||||||
. '(' . $this->pCommaSeparated($node->params) . ')'
|
. '(' . $this->pCommaSeparated($node->params) . ')'
|
||||||
. (null !== $node->returnType ? ': ' . $this->p($node->returnType) : '')
|
. (null !== $node->returnType ? ': ' . $this->p($node->returnType) : '')
|
||||||
. ' => '
|
. ' => '
|
||||||
. $this->p($node->expr);
|
. $this->pDereferenceLhs($node->expr);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function pExpr_ClosureUse(Expr\ClosureUse $node) {
|
protected function pExpr_ClosureUse(Expr\ClosureUse $node) {
|
||||||
|
Loading…
Reference in New Issue
Block a user