Haehnchen / idea-php-phpunit-plugin

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

Add `mixed` to the return type of `ObjectProphecy::reveal()` #61

Open tjlytle opened 3 years ago

tjlytle commented 3 years ago

PhpStorm complains about the type being wrong for methods with typed arguments because the annotated return value of reveal() is object and (I think) this plugin adds ProphecySubjectInterface. If mixed is added as well, PhpStorm should stop complaining that object|ProphecySubjectInterface don't match the expected type.