Skip to content

Commit f1d64d3

Browse files
committed
unify short ternary operator
1 parent b975b8b commit f1d64d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Output/Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ abstract class Output implements OutputInterface
4646
public function __construct($verbosity = self::VERBOSITY_NORMAL, $decorated = false, OutputFormatterInterface $formatter = null)
4747
{
4848
$this->verbosity = null === $verbosity ? self::VERBOSITY_NORMAL : $verbosity;
49-
$this->formatter = null === $formatter ? new OutputFormatter() : $formatter;
49+
$this->formatter = $formatter ?: new OutputFormatter();
5050
$this->formatter->setDecorated($decorated);
5151
}
5252

0 commit comments

Comments
 (0)