Open TysonAndre opened 6 years ago
Warn if any method implementations in the mock are missing or incompatible.
E.g. if the default mock value is to return null, MockT1::foo() : null would be a bad substitute of T1::foo() : stdClass
Maybe add @phan-mock-return UnionType (e.g. @phan-mock-return null for Phockito)
@phan-mock-return UnionType
@phan-mock-return null
This might be better to implement as a plugin
Warn if any method implementations in the mock are missing or incompatible.
E.g. if the default mock value is to return null, MockT1::foo() : null would be a bad substitute of T1::foo() : stdClass
Maybe add
@phan-mock-return UnionType
(e.g.@phan-mock-return null
for Phockito)This might be better to implement as a plugin