1
0
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:
Pavel Levin 2017-06-30 19:19:13 +03:00 committed by Nikita Popov
parent 46e7fea72d
commit 8bdcb47815

View File

@ -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;