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

more precise SpecifiedTypes phpdocs #682

Merged
merged 5 commits into from Sep 22, 2021
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Sep 22, 2021

No description provided.

@ondrejmirtes
Copy link
Member

I worry the casts actually need to stay there because PHP arrays are messy. They'll automatically cast numeric strings to integers which will lead to type errors.

@staabm
Copy link
Contributor Author

staabm commented Sep 22, 2021

hmm so the cast-errors should be baselined?

@ondrejmirtes
Copy link
Member

You can use the inline ignore PHPDoc

@staabm staabm changed the title Added SpecifiedTypes phpdocs more precise SpecifiedTypes phpdocs Sep 22, 2021
@staabm staabm marked this pull request as ready for review September 22, 2021 09:40
@ondrejmirtes ondrejmirtes merged commit 43c192b into phpstan:master Sep 22, 2021
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the phpdocs branch September 22, 2021 12:51
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