You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert makes it throw in case the type does not match I presume?
Most likely the extension cannot handle the assert yet, since phpstan itself handles that just fine. See e.g. https://phpstan.org/r/13ea6cd2-061b-47ac-925e-ee1f50c86c0e. Without assert support it would kind of translate to the second block and therefore loose type information in the scope.
Hi,
Given a variable that the type is already known:
Then type of
$foo
will becomeFooInterface
, but I would expectBarInterface&FooInterface
What do you think?
Thanks
The text was updated successfully, but these errors were encountered: