Skip to content

Commit 0b27f30

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Fix CS Fix CS
2 parents 14bd8a4 + 550c151 commit 0b27f30

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

DataCollector/MemoryDataCollector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ private function convertToBytes(string $memoryLimit): int|float
9494

9595
switch (substr($memoryLimit, -1)) {
9696
case 't': $max *= 1024;
97+
// no break
9798
case 'g': $max *= 1024;
99+
// no break
98100
case 'm': $max *= 1024;
101+
// no break
99102
case 'k': $max *= 1024;
100103
}
101104

Tests/EventListener/SessionListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ public function testResponseIsPrivateIfSessionStarted()
459459
$this->assertTrue($response->headers->hasCacheControlDirective('private'));
460460
$this->assertTrue($response->headers->hasCacheControlDirective('must-revalidate'));
461461
$this->assertSame('0', $response->headers->getCacheControlDirective('max-age'));
462-
$this->assertLessThanOrEqual((new \DateTime('now', new \DateTimeZone('UTC'))), (new \DateTime($response->headers->get('Expires'))));
462+
$this->assertLessThanOrEqual(new \DateTime('now', new \DateTimeZone('UTC')), new \DateTime($response->headers->get('Expires')));
463463
$this->assertFalse($response->headers->has(AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER));
464464
}
465465

@@ -593,7 +593,7 @@ public function testSurrogateMainRequestIsPublic()
593593
$this->assertSame('0', $response->headers->getCacheControlDirective('max-age'));
594594

595595
$this->assertTrue($response->headers->has('Expires'));
596-
$this->assertLessThanOrEqual((new \DateTime('now', new \DateTimeZone('UTC'))), (new \DateTime($response->headers->get('Expires'))));
596+
$this->assertLessThanOrEqual(new \DateTime('now', new \DateTimeZone('UTC')), new \DateTime($response->headers->get('Expires')));
597597
}
598598

599599
public function testGetSessionIsCalledOnce()

0 commit comments

Comments
 (0)