Fixed: Bug (#2127)

`OutputInterface` have next definition, and `$options` is the third parameter of `write`, not second:
```
    /**
     * Writes a message to the output.
     *
     * @param string|iterable $messages The message as an iterable of strings or a single string
     * @param bool            $newline  Whether to add a newline
     * @param int             $options  A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL
     */
    public function write($messages, bool $newline = false, int $options = 0);
```
This commit is contained in:
Igor Mukhin 2020-07-31 00:56:11 +03:00 committed by GitHub
parent 8293eb931e
commit 945910e7a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -504,7 +504,7 @@ function writeln($message, $options = 0)
*/
function write($message, $options = 0)
{
output()->write(parse($message), $options);
output()->write(parse($message), false, $options);
}
/**