Skip to content

Conversation

@canvural
Copy link
Contributor

@canvural canvural commented Nov 6, 2025

This one does not add too much value, but I just didn't want to do instanceof ErrorType in my extensions 😄

Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

ApiInstanceofTypeRule should be made aware of this 😊

@ondrejmirtes
Copy link
Member

Do you also feel like doing isNever() + isExplicitNever()? :)

@canvural
Copy link
Contributor Author

canvural commented Nov 7, 2025

Do you also feel like doing isNever() + isExplicitNever()? :)

Didn't ever need that I guess, but sure I can. In a separate PR?

@canvural
Copy link
Contributor Author

canvural commented Nov 10, 2025

The mutations look valid, but I don't know how I can change them in bulk.

Edit: I guess $type instanceof ErrorType could be !$type->isError()->no() and !$type instanceof ErrorType can be $type->isError()->no() ?

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.

2 participants