Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure http_response_header is a list<string> #2959

Merged
merged 4 commits into from
May 30, 2024

Conversation

Seldaek
Copy link
Contributor

@Seldaek Seldaek commented Mar 7, 2024

Not sure if that's the proper/best use of AccessoryArrayListType, but anyway I hope the intent is clear :)

@staabm
Copy link
Contributor

staabm commented Mar 8, 2024

since no test is failling after the change it seems we are missing a NodeScopeResolverTest with a type inference assertion for this variable :)

Copy link
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - thank you

use function PHPStan\Testing\assertType;

file_get_contents('https://example.org');
assertType('list<string>', $http_response_header);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh I think you are missing another assert for assertNativeType

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok hopefully I did this correctly :)

@ondrejmirtes ondrejmirtes changed the base branch from 1.10.x to 1.11.x May 30, 2024 13:30
@ondrejmirtes ondrejmirtes merged commit 316630e into phpstan:1.11.x May 30, 2024
50 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants