Skip to content

Commit bc7b5d2

Browse files
Robin Chalaschalasr
authored andcommitted
[Serializer] fix undefined class
1 parent f5d2d67 commit bc7b5d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/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)