Skip to content

Improve explode return type precision #3096

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

Merged
merged 3 commits into from
May 30, 2024
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented May 26, 2024

inspired by comments in 0069107#r43325405

staabm added 2 commits May 26, 2024 12:06
@staabm staabm marked this pull request as ready for review May 26, 2024 10:31
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.


return $arrayType;
if ($this->phpVersion->getVersionId() <= 80000 && $isEmptyString->maybe()) {
Copy link
Member

Choose a reason for hiding this comment

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

Do not use phpVersion like that, create a new method that describes the thing. Or use an existing method.

@ondrejmirtes ondrejmirtes merged commit b4b0887 into phpstan:1.11.x May 30, 2024
442 of 445 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the expl branch May 30, 2024 14:37
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.

None yet

3 participants