File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55namespace SimpleSAML \XML \Assert ;
66
77use Exception ;
8- use InvalidArgumentException ;
98use SimpleSAML \Assert \Assert as BaseAssert ;
9+ use SimpleSAML \Assert \AssertionFailedException ;
1010use SimpleSAML \XML \Constants as C ;
1111
1212use function in_array ;
@@ -148,7 +148,7 @@ public static function allowedXPathFilter(
148148 // Check that all the function names we found are in the list of allowed function names
149149 foreach ($ matches [1 ] as $ match ) {
150150 if (!in_array ($ match , $ allowed_functions )) {
151- throw new InvalidArgumentException (sprintf (
151+ throw new AssertionFailedException (sprintf (
152152 $ message ?: '\'%s \' is not an allowed XPath function. ' ,
153153 $ match ,
154154 ));
@@ -171,7 +171,7 @@ public static function allowedXPathFilter(
171171 // Check that all the axes names we found are in the list of allowed axes names
172172 foreach ($ matches [1 ] as $ match ) {
173173 if (!in_array ($ match , $ allowed_axes )) {
174- throw new InvalidArgumentException (sprintf (
174+ throw new AssertionFailedException (sprintf (
175175 $ message ?: '\'%s \' is not an allowed XPath axis. ' ,
176176 $ match ,
177177 ));
You can’t perform that action at this time.
0 commit comments