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
The specifyType method is only called if there is one and only one referenced class. In our case, we can have an intersection of a MockObject and the class being mocked.
Did PHPStan help you today? Did it make you happy in any way?
It makes me happy everyday 🚀
The text was updated successfully, but these errors were encountered:
Bug report
When working with @brambaud on this feature request for phpstan-phpunit, we discovered a bug that been confirmed by @ondrejmirtes.
We need to call all involved class when creating a
TypeSpecifierAwareExtension
, the involved code is here : https://github.com/phpstan/phpstan-src/blob/2.1.x/src/Analyser/TypeSpecifier.php#L523The
specifyType
method is only called if there is one and only one referenced class. In our case, we can have an intersection of aMockObject
and the class being mocked.Did PHPStan help you today? Did it make you happy in any way?
It makes me happy everyday 🚀
The text was updated successfully, but these errors were encountered: