composer update
This commit is contained in:
@@ -545,7 +545,9 @@ class Standard extends PrettyPrinterAbstract
|
||||
|
||||
protected function pExpr_ArrayItem(Expr\ArrayItem $node) {
|
||||
return (null !== $node->key ? $this->p($node->key) . ' => ' : '')
|
||||
. ($node->byRef ? '&' : '') . $this->p($node->value);
|
||||
. ($node->byRef ? '&' : '')
|
||||
. ($node->unpack ? '...' : '')
|
||||
. $this->p($node->value);
|
||||
}
|
||||
|
||||
protected function pExpr_ArrayDimFetch(Expr\ArrayDimFetch $node) {
|
||||
@@ -582,6 +584,15 @@ class Standard extends PrettyPrinterAbstract
|
||||
. ' {' . $this->pStmts($node->stmts) . $this->nl . '}';
|
||||
}
|
||||
|
||||
protected function pExpr_ArrowFunction(Expr\ArrowFunction $node) {
|
||||
return ($node->static ? 'static ' : '')
|
||||
. 'fn' . ($node->byRef ? '&' : '')
|
||||
. '(' . $this->pCommaSeparated($node->params) . ')'
|
||||
. (null !== $node->returnType ? ': ' . $this->p($node->returnType) : '')
|
||||
. ' => '
|
||||
. $this->p($node->expr);
|
||||
}
|
||||
|
||||
protected function pExpr_ClosureUse(Expr\ClosureUse $node) {
|
||||
return ($node->byRef ? '&' : '') . $this->p($node->var);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user