Replies: 1 comment 2 replies
-
|
You should express this using subtypes or generics and then use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know there is
@phpstan-assertto narrow the type after a function/method returns.Example what I need:
I expect PHPStan to emit an error if the
$o->isEntityis definitely nottruelike in:Beta Was this translation helpful? Give feedback.
All reactions