GrumPHP\Linter\Xml\XmlLinter::collectXmlErrors PHP Method

collectXmlErrors() private method

private collectXmlErrors ( LintErrorsCollection $errors ) : array
$errors GrumPHP\Collection\LintErrorsCollection
return array
    private function collectXmlErrors(LintErrorsCollection $errors)
    {
        foreach (libxml_get_errors() as $error) {
            $errors->add(XmlLintError::fromLibXmlError($error));
        }
        $this->flushXmlErrors();
    }