Skip to content

Commit 4d29af3

Browse files
committed
minor #60294 align the type to the one in the human description (dkarlovi)
This PR was squashed before being merged into the 7.3 branch. Discussion ---------- align the type to the one in the human description | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | N/A | License | MIT The current type is too wide and not aligned with the intent described in the comment, it's `array-key` but `string` is intended It's fixing the type to align with what was intended judging by the implementation and the human description of the type. Commits ------- 31c45d4 align the type to the one in the human description
2 parents 072ddcc + 31c45d4 commit 4d29af3

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)