public function warn(string $string, $verbosityLevel = null): void
    {
        if (! $this->getOutput()->getFormatter()->hasStyle('warning')) {
            $style = new OutputFormatterStyle('yellow');
            $this->getOutput()->getFormatter()->setStyle('warning', $style);
        }

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

        $this->line($string, 'warning', $verbosityLevel);
    }
public function warn ( string $ string , $ verbosityLevel = null ) : void { if ( ! $ this -> getOutput ( ) -> getFormatter ( ) -> hasStyle ( 'warning' ) ) { $ style = new OutputFormatterStyle ( 'yellow' ) ; $ this -> getOutput ( ) -> getFormatter ( ) -> setStyle ( 'warning' , $ style ) ; } $ this -> line ( $ string , 'warning' , $ verbosityLevel ) ; }
Write a string as warning output.

@param string          $string
@param null|int|string $verbosityLevel

@return void
Write a string as warning output .