Skip to content

Remove $otherTypes in FilterFunctionReturnTypeHelper #2205

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 1 commit into from
Jan 30, 2023

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Jan 30, 2023

Since the last PR $otherTypes was only dealing with applying the range options, so I thought it might be a better idea to reflect this somehow and remove the special if conditions in the main method then.

I dislike the special handling for ConstantScalarType still, but did not touch it on purpose so far because it started to break existing tests.

@ondrejmirtes
Copy link
Member

I think it should be possible to do this on 1.9.x.

@herndlm herndlm changed the base branch from 1.10.x to 1.9.x January 30, 2023 10:48
@herndlm herndlm force-pushed the remove-other-types branch from f22a409 to 665cdac Compare January 30, 2023 10:49
@herndlm
Copy link
Contributor Author

herndlm commented Jan 30, 2023

yeah, I just selected the wrong branch here / forgot to change to 1.9.x :)

@ondrejmirtes ondrejmirtes merged commit 224751c into phpstan:1.9.x Jan 30, 2023
@ondrejmirtes
Copy link
Member

Thank you!

@herndlm herndlm deleted the remove-other-types branch January 30, 2023 12:11
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

2 participants