Skip to content

Commit

Permalink
Leverage non-capturing catches
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Apr 1, 2022
1 parent 4a30258 commit 115bad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CookieJar.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function updateFromSetCookie(array $setCookies, string $uri = null)
foreach ($cookies as $cookie) {
try {
$this->set(Cookie::fromString($cookie, $uri));
} catch (\InvalidArgumentException $e) {
} catch (\InvalidArgumentException) {
// invalid cookies are just ignored
}
}
Expand Down

0 comments on commit 115bad0

Please sign in to comment.