public static function createFromTokenizerError(TokenizerException $tokenizerException): self
    {
        return new self(
            $tokenizerException->getSourceLine(),
            0,
            "Tokenization error: " . $tokenizerException->getMessage(),
            self::SEVERITY_ERROR,
            get_class($tokenizerException)
        );
    }
public static function createFromTokenizerError(TokenizerException $tokenizerException): self
    {
        return new self(
            $tokenizerException->getSourceLine(),
            0,
            "Tokenization error: " . $tokenizerException->getMessage(),
            self::SEVERITY_ERROR,
            get_class($tokenizerException)
        );
    }
public static function createFromTokenizerError ( TokenizerException $ tokenizerException ) : self { return new self ( $ tokenizerException -> getSourceLine ( ) , 0 , "Tokenization error: " . $ tokenizerException -> getMessage ( ) , self :: SEVERITY_ERROR , get_class ( $ tokenizerException ) ) ; }
Creates a new warning from a tokenizer error.

@param TokenizerException $tokenizerException The tokenizer error to convert into a warning.
@return Issue The converted warning.
Creates a new warning from a tokenizer error .