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

Fix substr return type on php<8 #1036

Merged
merged 4 commits into from Feb 24, 2022
Merged

Conversation

Seldaek
Copy link
Contributor

@Seldaek Seldaek commented Feb 24, 2022

See https://3v4l.org/PYGvv

The point would be to avoid warnings when checking against a false value, or casting (string) substr() for safety.

@ondrejmirtes ondrejmirtes merged commit 91e7ffc into phpstan:master Feb 24, 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
2 participants