8000 Clean up cookie duplication · laravel/framework@7620e6c · GitHub
[go: up one dir, main page]

Skip to content

Commit 7620e6c

Browse files
committed
Clean up cookie duplication
1 parent f820acc commit 7620e6c

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/Illuminate/Cookie/Middleware/EncryptCookies.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,7 @@ protected function encrypt(Response $response)
195195
*/
196196
protected function duplicate(Cookie $cookie, $value)
197197
{
198-
return new Cookie(
199-
$cookie->getName(),
200-
$value,
201-
$cookie->getExpiresTime(),
202-
$cookie->getPath(),
203-
$cookie->getDomain(),
204-
$cookie->isSecure(),
205-
$cookie->isHttpOnly(),
206-
$cookie->isRaw(),
207-
$cookie->getSameSite(),
208-
$cookie->isPartitioned()
209-
);
198+
return $cookie->withValue($value);
210199
}
211200

212201
/**

0 commit comments

Comments
 (0)
0