8000 minor #23217 [Serializer] Fix workaround min php version (ogizanagi) · symfony/symfony@b223241 · GitHub
[go: up one dir, main page]

Skip to content

Commit b223241

Browse files
committed
minor #23217 [Serializer] Fix workaround min php version (ogizanagi)
This PR was merged into the 3.4 branch. Discussion ---------- [Serializer] Fix workaround min php version | Q | A | ------------- | --- | Branch? | 3.4 <!-- see comment below --> | Bug fix? | yes | New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | #22444 (comment) <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Commits ------- 74db2e6 [Serializer] Fix workaround min php version
2 parents db8b29b + 74db2e6 commit b223241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/Normalizer/DateTimeNormalizer.php

7DCD 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)
0