Skip to content

Commit

Permalink
[Serializer] fix undefined class
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Chalas authored and chalasr committed Jan 19, 2018
1 parent 92614bb commit abd3c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Normalizer/DateTimeNormalizer.php
Expand Up @@ -84,7 +84,7 @@ public function denormalize($data, $class, $format = null, array $context = arra
$timezone = $this->getTimezone($context);

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

if (null !== $dateTimeFormat) {
Expand Down

0 comments on commit abd3c5b

Please sign in to comment.