Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b223241

Browse filesBrowse 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
Copy full SHA for b223241

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Normalizer/DateTimeNormalizer.php
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.