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 4efe2ab commit 410d1ceCopy full SHA for 410d1ce
src/Assert/XPathFilterTrait.php
@@ -7,6 +7,7 @@
7
use Exception;
8
use InvalidArgumentException;
9
use SimpleSAML\Assert\Assert as BaseAssert;
10
+use SimpleSAML\Assert\AssertionFailedException;
11
use SimpleSAML\XML\Constants as C;
12
13
use function in_array;
@@ -171,7 +172,7 @@ public static function allowedXPathFilter(
171
172
// Check that all the axes names we found are in the list of allowed axes names
173
foreach ($matches[1] as $match) {
174
if (!in_array($match, $allowed_axes)) {
- throw new InvalidArgumentException(sprintf(
175
+ throw new AssertionFailedException(sprintf(
176
$message ?: '\'%s\' is not an allowed XPath axis.',
177
$match,
178
));
0 commit comments