Skip to content

Commit 363110f

Browse files
authored
Merge pull request #41 from dpash/patch-1
Update LaravelHttpClientLoggerServiceProvider.php
2 parents 3c374b3 + 8cc903c commit 363110f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelHttpClientLoggerServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function packageBooted()
5959
}
6060
});
6161

62-
PendingRequest::macro('logWith', function (HttpLoggerInterface $logger = null): PendingRequest {
62+
PendingRequest::macro('logWith', function (?HttpLoggerInterface $logger = null): PendingRequest {
6363
/** @var \Illuminate\Http\Client\PendingRequest $this */
6464
return $this->withMiddleware((new LoggingMiddleware($logger, new LogAllFilter()))->__invoke());
6565
});

0 commit comments

Comments
 (0)