We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent def9351 commit 67f2b78Copy full SHA for 67f2b78
system/HTTP/ResponseTrait.php
@@ -581,14 +581,11 @@ public function setCookie(
581
return $this;
582
}
583
584
- /** @var CookieConfig|null $cookieConfig */
585
$cookieConfig = config(CookieConfig::class);
586
587
- if ($cookieConfig instanceof CookieConfig) {
588
- $secure ??= $cookieConfig->secure;
589
- $httponly ??= $cookieConfig->httponly;
590
- $samesite ??= $cookieConfig->samesite;
591
- }
+ $secure ??= $cookieConfig->secure;
+ $httponly ??= $cookieConfig->httponly;
+ $samesite ??= $cookieConfig->samesite;
592
593
if (is_array($name)) {
594
// always leave 'name' in last place, as the loop will break otherwise, due to ${$item}
0 commit comments