You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (null === $this->defaultContext[self::THROW_EXCEPTION_ON_INVALID_KEY]) {
48
+
trigger_deprecation('symfony/serializer', '5.4', 'The key context "%s" of "%s" must be defined. The value will be "false" in Symfony 6.0.', self::THROW_EXCEPTION_ON_INVALID_KEY, __CLASS__);
49
+
}
42
50
}
43
51
44
52
/**
@@ -77,15 +85,22 @@ public function supportsNormalization($data, string $format = null)
thrownewNotNormalizableValueException('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.');
90
105
}
91
106
@@ -98,12 +113,20 @@ public function denormalize($data, string $type, string $format = null, array $c
$this->expectDeprecation('Since symfony/serializer 5.4: The key context "throw_exception_on_invalid_key" of "Symfony\Component\Serializer\Normalizer\DateTimeNormalizer" must be defined. The value will be "false" in Symfony 6.0.');
0 commit comments