From f834235ff425a7feebcb887210c1b422a3e779d6 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 23 Jul 2024 12:14:36 +0200 Subject: [PATCH] Fix quality checks --- src/SAML2/Assert/CustomAssertionTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SAML2/Assert/CustomAssertionTrait.php b/src/SAML2/Assert/CustomAssertionTrait.php index c8b31d7be..210c081fa 100644 --- a/src/SAML2/Assert/CustomAssertionTrait.php +++ b/src/SAML2/Assert/CustomAssertionTrait.php @@ -36,7 +36,7 @@ private static function validDateTime(string $value, string $message = ''): void try { BaseAssert::validDateTime($value, '\'%s\' is not a valid xs:dateTime'); } catch (AssertionFailedException $e) { - throw new SchemaValidationException(sprintf( + throw new SchemaViolationException(sprintf( $e->getMessage(), $value, ));