Haehnchen / idea-php-phpunit-plugin

IntelliJ IDEA / PhpStorm PHPUnit Enhancement Plugin
MIT License
55 stars 11 forks source link

Support for ObjectProphecy documented with its generic type #88

Open stof opened 1 year ago

stof commented 1 year ago

When defining the type for a property or a return type holding an ObjectProphecy, the right way to document that is ObjectProphecy<Foo>, not ObjectProphecy|Foo (which would make SA tools complain that the variable might not always be an ObjectProphecy) or ObjectProphecy&Foo (which is an impossible type).

It would be great if this plugin could extract information from a ObjectProphecy<Foo> phpdoc type to know the inner type.