Skip to content

Commit 66680c6

Browse files
committed
Change condition to assert $pieces[1] is set for Psalm
1 parent 4ca6895 commit 66680c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Cookie/ResponseCookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static function fromHeader(string $string): ?self
5555
$pieces = \array_map('trim', \explode('=', $part, 2));
5656
$key = \strtolower($pieces[0]);
5757

58-
if (1 === \count($pieces)) {
58+
if (\count($pieces) < 2) {
5959
switch ($key) {
6060
case 'secure':
6161
$meta = $meta->withSecure();

0 commit comments

Comments
 (0)