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

infer non-empty-string on strstr() comparison with constant string #1365

Merged
merged 4 commits into from May 30, 2022

Conversation

staabm
Copy link
Contributor

@staabm staabm commented May 30, 2022

similar to #1259

refs phpstan/phpstan#6792

I think we should also cover strchr, strrchr but in a separate PR
-> I think we should also cover strpbrk, strtoupper, strtolower, mb_strtoupper, mb_strtolower, ucfirst, lcfirst, ucwords but in a separate PR

@staabm staabm marked this pull request as ready for review May 30, 2022 07:38
@ondrejmirtes ondrejmirtes merged commit 82ef69d into phpstan:1.7.x May 30, 2022
@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