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
Not sure if this is a psalm issue but thought I'd come here to clarify how stubs work.
Using PHPUnit 7 which has
/**
* Registers a new expectation in the mock object and returns the match
* object which can be infused with further details.
*
* @return InvocationMocker
*/
public function expects(Invocation $matcher);
in MockObject.
This doesn't seem to appear in the stub but no error in IDE (possibly because psalm warning level is not high enough?)
When calling createMock(MyClass::class) and deprecating __call on MyClass, I get errors about DeprecatedMethod for uses of expects.
Is that expected behaviour or is something incorrect?
The text was updated successfully, but these errors were encountered:
Not sure if this is a psalm issue but thought I'd come here to clarify how stubs work.
Using PHPUnit 7 which has
in
MockObject
.This doesn't seem to appear in the stub but no error in IDE (possibly because psalm warning level is not high enough?)
When calling
createMock(MyClass::class)
and deprecating__call
onMyClass
, I get errors aboutDeprecatedMethod
for uses ofexpects
.Is that expected behaviour or is something incorrect?
The text was updated successfully, but these errors were encountered: