| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function setUp() |
||
| 19 | { |
||
| 20 | /** @var AdminListConfiguratorInterface */ |
||
| 21 | $configurator = $this->createMock(ExportListConfiguratorInterface::class); |
||
| 22 | $configurator->method('getExportFields')->willReturn(['c', 'd']); |
||
| 23 | $configurator->method('getIterator')->willReturn($this->createMock(\Iterator::class)); |
||
| 24 | $configurator->method('getStringValue')->willReturn('stringtest'); |
||
| 25 | |||
| 26 | $this->exportList = new ExportList($configurator); |
||
|
|
|||
| 27 | } |
||
| 28 | |||
| 45 |
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: