Skip to content

Commit 115bad0

Browse files
committed
Leverage non-capturing catches
1 parent 4a30258 commit 115bad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CookieJar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public function updateFromSetCookie(array $setCookies, string $uri = null)
122122
foreach ($cookies as $cookie) {
123123
try {
124124
$this->set(Cookie::fromString($cookie, $uri));
125-
} catch (\InvalidArgumentException $e) {
125+
} catch (\InvalidArgumentException) {
126126
// invalid cookies are just ignored
127127
}
128128
}

0 commit comments

Comments
 (0)