Skip to content

Commit

Permalink
handles empty factory in ConnectException while recording request-res…
Browse files Browse the repository at this point in the history
…ponse (#54121)
  • Loading branch information
StSarc authored Jan 9, 2025
1 parent ce0c8c9 commit 0914011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Client/PendingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ public function send(string $method, string $url, array $options = [])
$exception = new ConnectionException($e->getMessage(), 0, $e);
$request = new Request($e->getRequest());

$this->factory->recordRequestResponsePair($request, null);
$this->factory?->recordRequestResponsePair($request, null);

$this->dispatchConnectionFailedEvent($request, $exception);

Expand Down

0 comments on commit 0914011

Please sign in to comment.