Skip to content

Commit 0d12417

Browse files
committed
Migrate new class to 8.4 DOM API
1 parent 673e47b commit 0d12417

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/XMLSchema/Type/Helper/XPathValue.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
namespace SimpleSAML\XMLSchema\Type\Helper;
66

7-
use DOMNodeList;
8-
use DOMXPath;
7+
use Dom;
98
use SimpleSAML\Assert\Assert;
109
use SimpleSAML\XML\DOMDocumentFactory;
1110
use SimpleSAML\XMLSchema\Type\StringValue;
@@ -22,9 +21,9 @@ class XPathValue extends StringValue
2221
*/
2322
protected function validateValue(string $content): void
2423
{
25-
$dom = new DOMXPath(DOMDocumentFactory::create());
24+
$dom = new Dom\XPath(DOMDocumentFactory::create());
2625

2726
$result = $dom->evaluate($content);
28-
Assert::isInstanceOf($result, DOMNodeList::class);
27+
Assert::isInstanceOf($result, Dom\NodeList::class);
2928
}
3029
}

0 commit comments

Comments
 (0)