|
/** @var IUser|MockObject $user */ |
|
$user = $this->createStub(IUser::class); |
The phpdoc still annotates $user as IUser|MockObject, but the value is now created via createStub(). This makes the annotation inaccurate/misleading (and can confuse IDEs/static analysis). Either update the annotation to IUser/Stub or switch back to createMock() if you want a MockObject here.
mail/tests/Unit/Service/Provisioning/ManagerTest.php
Lines 262 to 263 in 65a26b2