Skip to content

Commit 271db2d

Browse files
committed
Return the proper exception
1 parent b954b1c commit 271db2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Type/HMACOutputLengthValue.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace SimpleSAML\XMLSecurity\Type;
66

7+
use SimpleSAML\XML\Exception\SchemaViolationException;
78
use SimpleSAML\XML\Type\IntegerValue;
89
use SimpleSAML\XMLSecurity\Assert\Assert;
910

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

0 commit comments

Comments
 (0)