Skip to content

Commit 4219977

Browse files
[HttpClient] fix "undefined variable"
1 parent 0c6de76 commit 4219977

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Response/CurlResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function __destruct()
180180
} catch (HttpExceptionInterface $e) {
181181
throw $e;
182182
} finally {
183-
if (null !== $e) {
183+
if ($e ?? false) {
184184
throw $e;
185185
}
186186

Response/NativeResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function __destruct()
9191
} catch (HttpExceptionInterface $e) {
9292
throw $e;
9393
} finally {
94-
if (null !== $e) {
94+
if ($e ?? false) {
9595
throw $e;
9696
}
9797

0 commit comments

Comments
 (0)