File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \WebServices \SecurityPolicy \XML \sp_200507 ;
66
7- use Dom ;
8- use SimpleSAML \WebServices \SecurityPolicy \Assert \Assert ;
9- use SimpleSAML \XML \DOMDocumentFactory ;
107use SimpleSAML \XML \TypedTextContentTrait ;
11- use SimpleSAML \XMLSchema \Type \StringValue ;
8+ use SimpleSAML \XMLSchema \Type \Helper \ XPathValue ;
129
1310/**
1411 * An XPath element
@@ -20,18 +17,5 @@ final class XPath extends AbstractSpElement
2017 use TypedTextContentTrait;
2118
2219
23- public const string TEXTCONTENT_TYPE = StringValue::class;
24-
25-
26- /**
27- * Validate the content of the element.
28- *
29- * @throws \SimpleSAML\XMLSchema\Exception\SchemaViolationException on failure
30- */
31- protected function validateContent (string $ content ): void
32- {
33- $ dom = new Dom \XPath (DOMDocumentFactory::create ());
34- $ result = $ dom ->evaluate ($ content );
35- Assert::isInstanceOf ($ result , Dom \NodeList::class);
36- }
20+ public const string TEXTCONTENT_TYPE = XPathValue::class;
3721}
Original file line number Diff line number Diff line change 44
55namespace SimpleSAML \WebServices \SecurityPolicy \XML \sp_200702 ;
66
7- use Dom ;
8- use SimpleSAML \WebServices \SecurityPolicy \Assert \Assert ;
9- use SimpleSAML \XML \DOMDocumentFactory ;
107use SimpleSAML \XML \TypedTextContentTrait ;
11- use SimpleSAML \XMLSchema \Type \StringValue ;
8+ use SimpleSAML \XMLSchema \Type \Helper \ XPathValue ;
129
1310/**
1411 * An XPath element
@@ -20,18 +17,5 @@ final class XPath extends AbstractSpElement
2017 use TypedTextContentTrait;
2118
2219
23- public const string TEXTCONTENT_TYPE = StringValue::class;
24-
25-
26- /**
27- * Validate the content of the element.
28- *
29- * @throws \SimpleSAML\XMLSchema\Exception\SchemaViolationException on failure
30- */
31- protected function validateContent (string $ content ): void
32- {
33- $ dom = new Dom \XPath (DOMDocumentFactory::create ());
34- $ result = $ dom ->evaluate ($ content );
35- Assert::isInstanceOf ($ result , Dom \NodeList::class);
36- }
20+ public const string TEXTCONTENT_TYPE = XPathValue::class;
3721}
You can’t perform that action at this time.
0 commit comments