Skip to content

Commit

Permalink
Don't complain if someone passes 'false' for format in FormatterManag…
Browse files Browse the repository at this point in the history
…er::write (e.g. if a missing --format option is false rather than an empty string).
  • Loading branch information
greg-1-anderson committed Apr 24, 2016
1 parent 0801ff3 commit b1672aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormatterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct()
*/
public function write(OutputInterface $output, $format, $structuredOutput, $configurationData = [], $options = [])
{
$formatter = $this->getFormatter($format, $configurationData);
$formatter = $this->getFormatter((string)$format, $configurationData);

// Restructure the output data (e.g. select fields to display, etc.).
$structuredOutput = $this->restructureData($structuredOutput, $configurationData, $options);
Expand Down

0 comments on commit b1672aa

Please sign in to comment.