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 5
5
namespace SimpleSAML \XML \Assert ;
6
6
7
7
use Exception ;
8
- use InvalidArgumentException ;
9
8
use SimpleSAML \Assert \Assert as BaseAssert ;
9
+ use SimpleSAML \Assert \AssertionFailedException ;
10
10
use SimpleSAML \XML \Constants as C ;
11
11
12
12
use function in_array ;
@@ -148,7 +148,7 @@ public static function allowedXPathFilter(
148
148
// Check that all the function names we found are in the list of allowed function names
149
149
foreach ($ matches [1 ] as $ match ) {
150
150
if (!in_array ($ match , $ allowed_functions )) {
151
- throw new InvalidArgumentException (sprintf (
151
+ throw new AssertionFailedException (sprintf (
152
152
$ message ?: '\'%s \' is not an allowed XPath function. ' ,
153
153
$ match ,
154
154
));
@@ -171,7 +171,7 @@ public static function allowedXPathFilter(
171
171
// Check that all the axes names we found are in the list of allowed axes names
172
172
foreach ($ matches [1 ] as $ match ) {
173
173
if (!in_array ($ match , $ allowed_axes )) {
174
- throw new InvalidArgumentException (sprintf (
174
+ throw new AssertionFailedException (sprintf (
175
175
$ message ?: '\'%s \' is not an allowed XPath axis. ' ,
176
176
$ match ,
177
177
));
You can’t perform that action at this time.
0 commit comments