Skip to content

Commit 37a49b3

Browse files
committed
Merge branch '4.0'
* 4.0: [Serializer] fix undefined class [FrameworkBundle] fix DI extension tests
2 parents 8727fe7 + 18abe8e commit 37a49b3

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)