8000 Merge branch '6.0' into 6.1 · symfony/symfony@a450fa8 · GitHub
[go: up one dir, main page]

Skip to content

Commit a450fa8

Browse files
Merge branch '6.0' into 6.1
* 6.0: [HttpFoundation] Fix tests on PHP 8.2 (bis)
2 parents 88bfa64 + 527b6a9 commit a450fa8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/HttpFoundation/Tests/ResponseFunctionalTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public static function tearDownAfterClass(): void
4444
public function testCookie($fixture)
4545
{
4646
$result = file_get_contents(sprintf('http://localhost:8054/%s.php', $fixture));
47+
$result = preg_replace_callback('/expires=[^;]++/', function ($m) { return str_replace('-', ' ', $m[0]); }, $result);
4748
$this->assertStringMatchesFormatFile(__DIR__.sprintf('/Fixtures/response-functional/%s.expected', $fixture), $result);
4849
}
4950

0 commit comments

Comments
 (0)
0