src/Leevel/Console/Command.php
public function warn($message, $verbosity = null): void
    {
        if (!$this->output->getFormatter()->hasStyle('warning')) {
            $this->output->getFormatter()->setStyle('warning', new OutputFormatterStyle('yellow'));
        }

        $this->line($message, 'warning', $verbosity);
    }
public function warn($message, $verbosity = null): void
    {
        if (!$this->output->getFormatter()->hasStyle('warning')) {
            $this->output->getFormatter()->setStyle('warning', new OutputFormatterStyle('yellow'));
        }

        $this->line($message, 'warning', $verbosity);
    }
输出一个警告信息.

@param string          $message
@param null|int|string $verbosity