Skip to content

Commit 31c45d4

Browse files
dkarlovifabpot
authored andcommitted
align the type to the one in the human description
1 parent a2a47bc commit 31c45d4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Symfony/Component/HttpClient/Response/TransportResponseTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
trait TransportResponseTrait
3131
{
3232
private Canary $canary;
33+
/** @var array<string, list<string>> */
3334
private array $headers = [];
3435
private array $info = [
3536
'response_headers' => [],

src/Symfony/Contracts/HttpClient/ResponseInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function getStatusCode(): int;
3636
*
3737
* @param bool $throw Whether an exception should be thrown on 3/4/5xx status codes
3838
*
39-
* @return string[][] The headers of the response keyed by header names in lowercase
39+
* @return array<string, list<string>> The headers of the response keyed by header names in lowercase
4040
*
4141
* @throws TransportExceptionInterface When a network error occurs
4242
* @throws RedirectionExceptionInterface On a 3xx when $throw is true and the "max_redirects" option has been reached

0 commit comments

Comments
 (0)