protected function addMessage($error, $message, $line, $column, $code, $data, $severity, $isFixable = false) : bool
    {
        if (!$error) { // skip warnings
            return false;
        }

        $this->errorDataCollector->addErrorMessage($this->path, $message, $line, $code, $data, $isFixable);

        return true;
    }
protected function addMessage($error, $message, $line, $column, $code, $data, $severity, $isFixable = false) : bool
    {
        if (!$error) { // skip warnings
            return false;
        }

        $this->errorDataCollector->addErrorMessage($this->path, $message, $line, $code, $data, $isFixable);

        return true;
    }
{@inheritdoc}