src/RecordingOutput.php
/**
     * @param string|array<string> $messages The message as an array of lines or a single string
     * @param bool $newline
     * @param int $options
     */
@param string|array $messages The message as an array of lines or a single string
@param bool $newline
@param int $options
@param string|array $messages The message as an array of lines or a single string @param bool $newline @param int $options
public function write($messages, $newline = false, $options = 0): void
    {
        $messages = (array) $messages;
        $this->buffer .= sprintf('%s%s', implode($newline ? "\n" : '', $messages), $newline ? "\n" : '');
        $this->output->write($messages, $newline, $options);
    }
public function write ( $ messages , $ newline = false , $ options = 0 ) : void { $ messages = ( array ) $ messages ; $ this -> buffer .= sprintf ( '%s%s' , implode ( $ newline ? " \n " : '' , $ messages ) , $ newline ? " \n " : '' ) ; $ this -> output -> write ( $ messages , $ newline , $ options ) ; }
@param string|array<string> $messages The message as an array of lines or a single string
 @param bool $newline
 @param int $options
@param string|array<string > $messages The message as an array of lines or a single string @param bool $newline @param int $options