Skip to content

Conversation

dkarlovi
Copy link
Contributor

@dkarlovi dkarlovi commented Apr 28, 2025

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.

@dkarlovi
Copy link
Contributor Author

/cc @stof.

@dkarlovi dkarlovi changed the title fix: align the type to the one in the human description [HttpClient] align the type to the one in the human description Apr 28, 2025
@stof
Copy link
Member

stof commented Apr 28, 2025

I suggest adding the more precise type on the property TransportResponseTrait::$headers as well, so that Psalm is not reporting issues on the TransportResponseTrait implementation of the method

@dkarlovi
Copy link
Contributor Author

@stof

I suggest adding the more precise type on the property TransportResponseTrait::$headers as well, so that Psalm is not reporting issues on the TransportResponseTrait implementation of the method

Done.

@carsonbot carsonbot changed the title [HttpClient] align the type to the one in the human description align the type to the one in the human description Apr 29, 2025
@fabpot
Copy link
Member

fabpot commented Apr 29, 2025

Good catch, thanks @dkarlovi.

@fabpot fabpot merged commit 4d29af3 into symfony:7.3 Apr 29, 2025
8 of 10 checks passed
@dkarlovi dkarlovi deleted the patch-1 branch April 29, 2025 11:23
@carsonbot carsonbot changed the title align the type to the one in the human description [HttpClient] align the type to the one in the human description May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants