diff --git a/Classes/Validation/AbstactDomDocumentValidator.php b/Classes/Validation/AbstactDomDocumentValidator.php index 23466fa0..f5c85b99 100644 --- a/Classes/Validation/AbstactDomDocumentValidator.php +++ b/Classes/Validation/AbstactDomDocumentValidator.php @@ -45,6 +45,8 @@ public function __construct() parent::__construct(DOMDocument::class); } + abstract public function isValidDocument(); + protected function isValid($value): void { $this->xpath = new DOMXPath($value); @@ -60,6 +62,4 @@ protected function createNodeValidator(?DOMNode $node): DomNodeValidator { return new DomNodeValidator($this->xpath, $this->result, $node); } - - public abstract function isValidDocument(); } diff --git a/Classes/Validation/Dom/DomNodeListValidator.php b/Classes/Validation/Dom/DomNodeListValidator.php index c69db093..bdbd38b9 100644 --- a/Classes/Validation/Dom/DomNodeListValidator.php +++ b/Classes/Validation/Dom/DomNodeListValidator.php @@ -53,7 +53,7 @@ class DomNodeListValidator private ?DOMNode $contextNode; /** - * @var DOMNodeList|false|mixed The node list result of XPath query + * @var DOMNodeList|false The node list result of XPath query */ private DOMNodeList $nodeList; diff --git a/Classes/Validation/Dom/DomNodeValidator.php b/Classes/Validation/Dom/DomNodeValidator.php index 3d472fa1..e142e4e8 100644 --- a/Classes/Validation/Dom/DomNodeValidator.php +++ b/Classes/Validation/Dom/DomNodeValidator.php @@ -40,6 +40,7 @@ */ class DomNodeValidator { + /** * @var DOMXPath The XPath of document to validate */ diff --git a/Tests/Unit/Validation/AbstractDomDocumentValidatorTest.php b/Tests/Unit/Validation/AbstractDomDocumentValidatorTest.php index c4c2bda0..991f5555 100644 --- a/Tests/Unit/Validation/AbstractDomDocumentValidatorTest.php +++ b/Tests/Unit/Validation/AbstractDomDocumentValidatorTest.php @@ -34,6 +34,7 @@ abstract class AbstractDomDocumentValidatorTest extends UnitTestCase { + /** * @var AbstractDlfValidator */