Skip to content

Commit 6c90d82

Browse files
committed
ICL: Request type hinted.
1 parent d748f87 commit 6c90d82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integrations/guzzle.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
22

33
use Illuminated\Console\RuntimeException;
4+
use Psr\Http\Message\RequestInterface;
45
use Psr\Log\LoggerInterface;
56

67
function iclogger_guzzle_middleware(LoggerInterface $log, $type = 'raw')
78
{
89
return function (callable $handler) use ($log, $type) {
9-
return function ($request, array $options) use ($handler, $log, $type) {
10+
return function (RequestInterface $request, array $options) use ($handler, $log, $type) {
1011
$method = (string) $request->getMethod();
1112
$uri = (string) $request->getUri();
1213
$body = (string) $request->getBody();

0 commit comments

Comments
 (0)