Skip to content

Commit 37ebab3

Browse files
committed
Merge branch '4.4' into 5.4
* 4.4: Fix CS
2 parents b1974e7 + eefc100 commit 37ebab3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/EventListener/SessionListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public function testResponseIsPrivateIfSessionStarted()
415415
$this->assertTrue($response->headers->hasCacheControlDirective('private'));
416416
$this->assertTrue($response->headers->hasCacheControlDirective('must-revalidate'));
417417
$this->assertSame('0', $response->headers->getCacheControlDirective('max-age'));
418-
$this->assertLessThanOrEqual((new \DateTime('now', new \DateTimeZone('UTC'))), (new \DateTime($response->headers->get('Expires'))));
418+
$this->assertLessThanOrEqual(new \DateTime('now', new \DateTimeZone('UTC')), new \DateTime($response->headers->get('Expires')));
419419
$this->assertFalse($response->headers->has(AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER));
420420
}
421421

@@ -568,7 +568,7 @@ public function testSurrogateMainRequestIsPublic()
568568
$this->assertSame('0', $response->headers->getCacheControlDirective('max-age'));
569569

570570
$this->assertTrue($response->headers->has('Expires'));
571-
$this->assertLessThanOrEqual((new \DateTime('now', new \DateTimeZone('UTC'))), (new \DateTime($response->headers->get('Expires'))));
571+
$this->assertLessThanOrEqual(new \DateTime('now', new \DateTimeZone('UTC')), new \DateTime($response->headers->get('Expires')));
572572
}
573573

574574
public function testGetSessionIsCalledOnce()

0 commit comments

Comments
 (0)