Skip to content

Commit 18abe8e

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: [Serializer] fix undefined class [FrameworkBundle] fix DI extension tests
2 parents 35ba226 + abd3c5b commit 18abe8e

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
@@ -80,7 +80,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
8080
$timezone = $this->getTimezone($context);
8181

8282
if ('' === $data || null === $data) {
83-
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.');
83+
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.');
8484
}
8585

8686
if (null !== $dateTimeFormat) {

0 commit comments

Comments
 (0)