Skip to content

Commit f7107db

Browse files
committed
fix: resolves PHPStan type issue
1 parent df49b6f commit f7107db

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Providers/Http/HttpTransporter.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,9 @@ private function convertFromPsr7Response(ResponseInterface $psr7Response): Respo
117117
{
118118
$body = (string) $psr7Response->getBody();
119119

120-
/** @var array<string, array<string>> $headers */
121-
$headers = $psr7Response->getHeaders();
122-
123120
return new Response(
124121
$psr7Response->getStatusCode(),
125-
$headers,
122+
$psr7Response->getHeaders(), // @phpstan-ignore-line PSR-7 always returns headers as arrays, but HeadersCollection handles this
126123
$body === '' ? null : $body
127124
);
128125
}

0 commit comments

Comments
 (0)