We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 673e47b commit 0d12417Copy full SHA for 0d12417
1 file changed
src/XMLSchema/Type/Helper/XPathValue.php
@@ -4,8 +4,7 @@
4
5
namespace SimpleSAML\XMLSchema\Type\Helper;
6
7
-use DOMNodeList;
8
-use DOMXPath;
+use Dom;
9
use SimpleSAML\Assert\Assert;
10
use SimpleSAML\XML\DOMDocumentFactory;
11
use SimpleSAML\XMLSchema\Type\StringValue;
@@ -22,9 +21,9 @@ class XPathValue extends StringValue
22
21
*/
23
protected function validateValue(string $content): void
24
{
25
- $dom = new DOMXPath(DOMDocumentFactory::create());
+ $dom = new Dom\XPath(DOMDocumentFactory::create());
26
27
$result = $dom->evaluate($content);
28
- Assert::isInstanceOf($result, DOMNodeList::class);
+ Assert::isInstanceOf($result, Dom\NodeList::class);
29
}
30
0 commit comments