Skip to content

Commit

Permalink
[HttpClient] fix "undefined variable"
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Feb 11, 2020
1 parent 0c6de76 commit 4219977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Response/CurlResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function __destruct()
} catch (HttpExceptionInterface $e) {
throw $e;
} finally {
if (null !== $e) {
if ($e ?? false) {
throw $e;
}

Expand Down
2 changes: 1 addition & 1 deletion Response/NativeResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __destruct()
} catch (HttpExceptionInterface $e) {
throw $e;
} finally {
if (null !== $e) {
if ($e ?? false) {
throw $e;
}

Expand Down

0 comments on commit 4219977

Please sign in to comment.