protected function writeError(OutputInterface $output, string $message)
    {
        if ($output instanceof ConsoleOutputInterface) {
            $output = $output->getErrorOutput();
        }

        $output->writeln($this->getHelper('formatter')->formatBlock($message, 'error'));
    }
protected function writeError(OutputInterface $output, string $message)
    {
        if ($output instanceof ConsoleOutputInterface) {
            $output = $output->getErrorOutput();
        }

        $output->writeln($this->getHelper('formatter')->formatBlock($message, 'error'));
    }
protected function writeError ( OutputInterface $ output , string $ message ) { if ( $ output instanceof ConsoleOutputInterface ) { $ output = $ output -> getErrorOutput ( ) ; } $ output -> writeln ( $ this -> getHelper ( 'formatter' ) -> formatBlock ( $ message , 'error' ) ) ; }
Prints an error to an output

@param OutputInterface $output
@param string $message The error message
Prints an error to an output