Skip to content

implement isBoolean() on Type#1973

Merged
ondrejmirtes merged 4 commits intophpstan:1.9.xfrom
staabm:is-bool-type
Nov 6, 2022
Merged

implement isBoolean() on Type#1973
ondrejmirtes merged 4 commits intophpstan:1.9.xfrom
staabm:is-bool-type

Conversation

@staabm
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

3 participants