mirror of
https://github.com/danog/PHP-Parser.git
synced 2025-01-22 05:41:23 +01:00
Simplify ternary operator for PHP7 (#395)
This commit is contained in:
parent
46e7fea72d
commit
8bdcb47815
@ -489,7 +489,7 @@ abstract class PrettyPrinterAbstract
|
||||
$indentAdjustment = $this->indentLevel - $this->getIndentationBefore($startPos);
|
||||
|
||||
$type = $node->getType();
|
||||
$fixupInfo = isset($this->fixupMap[$type]) ? $this->fixupMap[$type] : null;
|
||||
$fixupInfo = $this->fixupMap[$type] ?? null;
|
||||
|
||||
$result = '';
|
||||
$pos = $startPos;
|
||||
|
Loading…
x
Reference in New Issue
Block a user