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

Prevent warning in range() on php 7.x #3424

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Sep 9, 2024

given invalid parameters the range() function can emit warnings, as I recently experienced in #3419

see https://3v4l.org/nYbAo

there are a few cases which only emit warnings
see https://www.php.net/manual/en/function.range.php

grafik

@staabm staabm marked this pull request as ready for review September 9, 2024 13:31
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 68f6e25 into phpstan:1.12.x Sep 10, 2024
473 of 499 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the range-warn branch September 10, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants