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 74db2e6

Browse filesBrowse files
committed
[Serializer] Fix workaround min php version
1 parent 0478ecd commit 74db2e6
Copy full SHA for 74db2e6

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.