diff --git a/src/FormatterManager.php b/src/FormatterManager.php index d33ec1e..19a8125 100644 --- a/src/FormatterManager.php +++ b/src/FormatterManager.php @@ -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);