Skip to content

Commit 3fdbac1

Browse files
committed
[Serializer] Fix workaround min php version
1 parent 6c567cb commit 3fdbac1

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

8383
if (null !== $dateTimeFormat) {
84-
if (null === $timezone && PHP_VERSION_ID < 50600) {
84+
if (null === $timezone && PHP_VERSION_ID < 70000) {
8585
// https://bugs.php.net/bug.php?id=68669
8686
$object = \DateTime::class === $class ? \DateTime::createFromFormat($dateTimeFormat, $data) : \DateTimeImmutable::createFromFormat($dateTimeFormat, $data);
8787
} else {

0 commit comments

Comments
 (0)