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

implement isBoolean() on Type #1973

Merged
merged 4 commits into from Nov 6, 2022
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Nov 6, 2022

@staabm staabm force-pushed the is-bool-type branch 2 times, most recently from cea275a to 59b7526 Compare November 6, 2022 17:33
@ondrejmirtes
Copy link
Member

Would be great to do isTrue and isFalse at the same time to get rid of instanceof ConstantBooleanType. Thanks!

@staabm staabm marked this pull request as ready for review November 6, 2022 18:13
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit 0936b3b into phpstan:1.9.x Nov 6, 2022
@ondrejmirtes
Copy link
Member

I love it, thank you!

@staabm staabm deleted the is-bool-type branch November 6, 2022 20:53
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