Skip to content

Commit 0904aa2

Browse files
committed
[PsrHttpMessageBridge] Remove Cookie::create() detection
1 parent df503d5 commit 0904aa2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Tests/Functional/CovertTest.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,7 @@ public static function responseProvider(): array
195195
['x-symfony' => ['3.4']]
196196
);
197197

198-
if (method_exists(Cookie::class, 'create')) {
199-
$cookie = Cookie::create('city', 'Lille', new \DateTime('Wed, 13 Jan 2021 22:23:01 GMT'));
200-
} else {
201-
$cookie = new Cookie('city', 'Lille', new \DateTime('Wed, 13 Jan 2021 22:23:01 GMT'));
202-
}
198+
$cookie = Cookie::create('city', 'Lille', new \DateTime('Wed, 13 Jan 2021 22:23:01 GMT'));
203199

204200
$sfResponse->headers->setCookie($cookie);
205201
$body = Psr7Stream::create();

0 commit comments

Comments
 (0)