Skip to content

Commit

Permalink
Return the proper exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Feb 7, 2025
1 parent b954b1c commit 271db2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Type/HMACOutputLengthValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace SimpleSAML\XMLSecurity\Type;

use SimpleSAML\XML\Exception\SchemaViolationException;
use SimpleSAML\XML\Type\IntegerValue;
use SimpleSAML\XMLSecurity\Assert\Assert;

Expand All @@ -23,6 +24,6 @@ class HMACOutputLengthValue extends IntegerValue
protected function validateValue(string $value): void
{
// Note: value must already be sanitized before validating
Assert::validHMACOutputLength($this->sanitizeValue($value));
Assert::validHMACOutputLength($this->sanitizeValue($value), SchemaViolationException::class);
}
}

0 comments on commit 271db2d

Please sign in to comment.