Skip to content

Commit a18ce1d

Browse files
Merge branch '6.4' into 7.0
* 6.4: [DoctrineBridge] Fix deprecations baseline in integration tests [DoctrineBridge] Update deprecations baseline bump validator requirement fix Doctrine deprecations fix merge Fix Doctrine deprecations [Validator] Remove internal from methods on non-internal interfaces [PhpUnitBridge] Fix support for the NO_COLOR env var [HttpKernel] Add optional $className param to ControllerEvent::getAttributes() Remove unnecessary usages of DateTime
2 parents 74d818f + 7a0d207 commit a18ce1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/InlineTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ public function testParseTimestampAsUnixTimestampByDefault(string $yaml, int $ye
574574
*/
575575
public function testParseTimestampAsDateTimeObject(string $yaml, int $year, int $month, int $day, int $hour, int $minute, int $second, int $microsecond, string $timezone)
576576
{
577-
$expected = (new \DateTime($yaml))
577+
$expected = (new \DateTimeImmutable($yaml))
578578
->setTimeZone(new \DateTimeZone('UTC'))
579579
->setDate($year, $month, $day)
580580
->setTime($hour, $minute, $second, $microsecond);
@@ -599,7 +599,7 @@ public static function getTimestampTests(): array
599599
*/
600600
public function testParseNestedTimestampListAsDateTimeObject(string $yaml, int $year, int $month, int $day, int $hour, int $minute, int $second, int $microsecond)
601601
{
602-
$expected = (new \DateTime($yaml))
602+
$expected = (new \DateTimeImmutable($yaml))
603603
->setTimeZone(new \DateTimeZone('UTC'))
604604
->setDate($year, $month, $day)
605605
->setTime($hour, $minute, $second, $microsecond);

0 commit comments

Comments
 (0)