public static function createFromParseError(ParseError $parseError): self
    {
        return new self(
            $parseError->getSourceLine(),
            0,
            "Parse error: " . $parseError->getMessage(),
            self::SEVERITY_ERROR,
            get_class($parseError)
        );
    }
public static function createFromParseError(ParseError $parseError): self
    {
        return new self(
            $parseError->getSourceLine(),
            0,
            "Parse error: " . $parseError->getMessage(),
            self::SEVERITY_ERROR,
            get_class($parseError)
        );
    }
public static function createFromParseError ( ParseError $ parseError ) : self { return new self ( $ parseError -> getSourceLine ( ) , 0 , "Parse error: " . $ parseError -> getMessage ( ) , self :: SEVERITY_ERROR , get_class ( $ parseError ) ) ; }
Creates a new warning from a parse error.

@param ParseError $parseError The parse error to convert into a warning.
@return Issue The converted warning.
Creates a new warning from a parse error .