src/Valkyrja/Console/Output/NativeStreamNativeOutput.php
protected function writeOut(string $message, bool $newLine): void
    {
        if (
            false === @fwrite($this->stream, $message)
            || ($newLine && (false === @fwrite($this->stream, PHP_EOL)))
        ) {
            // should never happen
            throw new RuntimeException(
                'Unable to write output.'
            );
        }

        fflush($this->stream);
    }
protected function writeOut(string $message, bool $newLine): void
    {
        if (
            false === @fwrite($this->stream, $message)
            || ($newLine && (false === @fwrite($this->stream, PHP_EOL)))
        ) {
            // should never happen
            throw new RuntimeException(
                'Unable to write output.'
            );
        }

        fflush($this->stream);
    }
Write a message out to the console.

@param string $message
@param bool   $newLine

@throws \RuntimeException

@return void