It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
It seems like $this->createMock() of type object<PHPUnit_Framework_MockObject_MockObject> is incompatible with the declared type object<COG\ChronoShifter\Evaluator\Evaluator> of property $firstMock.
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..
It seems like $this->createMock() of type object<PHPUnit_Framework_MockObject_MockObject> is incompatible with the declared type object<COG\ChronoShifter\Evaluator\Evaluator> of property $secondMock.
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...
34
}
35
36
/**
37
* @dataProvider logicalAndProvider
38
* @param bool $result
39
* @param bool $left
40
* @param bool $right
41
*/
42
public function testLogicalAndIsTrueIfBothSidesAreTrue($result, $left, $right)
$this->secondMock is of type object<COG\ChronoShifter\Evaluator\Evaluator>, but the function expects a object<PHPUnit_Framework_MockObject_MockObject>.
It seems like the type of the argument is not accepted by the function/method
which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this
might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example:
functionacceptsInteger($int){}$x='123';// string "123"// Instead ofacceptsInteger($x);// we recommend to useacceptsInteger((integer)$x);
Loading history...
46
47
$evaluator = new LogicalAnd($this->firstMock, $this->secondMock);