Skip to content

Commit e6bfda0

Browse files
committed
minor #11750 use Cookie::create() (xabbuh)
This PR was merged into the 4.2 branch. Discussion ---------- use Cookie::create() Commits ------- 24ac112 use Cookie::create()
2 parents f4530ab + 24ac112 commit e6bfda0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ attribute::
413413

414414
use Symfony\Component\HttpFoundation\Cookie;
415415

416-
$response->headers->setCookie(new Cookie('foo', 'bar'));
416+
$response->headers->setCookie(Cookie::create('foo', 'bar'));
417417

418418
The
419419
:method:`Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::setCookie`

0 commit comments

Comments
 (0)