Skip to content

Commit abd3c5b

Browse files
Robin Chalaschalasr
authored andcommitted
[Serializer] fix undefined class
1 parent 92614bb commit abd3c5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Normalizer/DateTimeNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
8484
$timezone = $this->getTimezone($context);
8585

8686
if ('' === $data || null === $data) {
87-
throw new UnexpectedValueException('The data is either an empty string or null, you should pass a string that can be parsed with the passed format or a valid DateTime string.');
87+
throw new NotNormalizableValueException('The data is either an empty string or null, you should pass a string that can be parsed with the passed format or a valid DateTime string.');
8888
}
8989

9090
if (null !== $dateTimeFormat) {

0 commit comments

Comments
 (0)