It seems like $this->getMockBuilder(Br...doRequest'))->getMock() of type PHPUnit_Framework_MockObject_MockObject is incompatible with the declared type BringYourOwnIdeas\Mainte...Util\ModuleHealthLoader of property $loader.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
18
->setMethods(['doRequest'])
19
->getMock();
20
}
21
22
public function testModuleNamesAreInTheRequestUrl()
The method expects() does not exist on BringYourOwnIdeas\Mainte...Util\ModuleHealthLoader. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.