-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
Labels
Description
Feature request
There are a few things I would wish universal object crates would support.
- Instead having to add them to the config file, mark a class as universal object crate in the class its docblock.
- Understand the return type of
__get. You can have an explicit return type in the__getmethod. PHPStorm understands this for example, and has auto-completion when using this. PHPStan however seems to ignore the result type and assume the result is mixed. Funny enough foroffsetGetofArrayAccessit seems to be the other way around.
Did PHPStan help you today? Did it make you happy in any way?
Yes, wish PHPStorm would understand generics the way PHPStan does.
Reactions are currently unavailable