From 8bdcb4781581f45460cba2dc0aa30ad87065a3a3 Mon Sep 17 00:00:00 2001 From: Pavel Levin Date: Fri, 30 Jun 2017 19:19:13 +0300 Subject: [PATCH] Simplify ternary operator for PHP7 (#395) --- lib/PhpParser/PrettyPrinterAbstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PhpParser/PrettyPrinterAbstract.php b/lib/PhpParser/PrettyPrinterAbstract.php index 97927bb..1dc38e4 100644 --- a/lib/PhpParser/PrettyPrinterAbstract.php +++ b/lib/PhpParser/PrettyPrinterAbstract.php @@ -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;