| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 19 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 19 | public function testProcessor(): void | ||
| 20 |     { | ||
| 21 | $processor = new ChainProcessor([ | ||
|  | |||
| 22 | $processor1 = $this->createMock(ProcessorInterface::class), | ||
| 23 | $processor2 = $this->createMock(ProcessorInterface::class), | ||
| 24 | ]); | ||
| 25 |         $resultSet = new ResultSet(new Response(''), new Query(), []); | ||
| 26 | |||
| 27 | $processor1->expects($this->once()) | ||
| 28 |             ->method('process') | ||
| 29 | ->with($resultSet) | ||
| 30 | ; | ||
| 31 | $processor2->expects($this->once()) | ||
| 32 |             ->method('process') | ||
| 33 | ->with($resultSet) | ||
| 34 | ; | ||
| 35 | |||
| 36 | $processor->process($resultSet); | ||
| 37 | } | ||
| 38 | } | ||
| 39 | 
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: