1 | <?php |
||
14 | class EditNodeControllerTest extends AbstractFormTest |
||
15 | { |
||
16 | /** |
||
17 | * @var NodeRepositoryInterface |
||
18 | */ |
||
19 | protected $nodeRepository; |
||
20 | protected $language = 'fr'; |
||
21 | protected $siteId = '2'; |
||
22 | |||
23 | /** |
||
24 | * Set up the test |
||
25 | */ |
||
26 | public function setUp() |
||
31 | |||
32 | /** |
||
33 | * @param string $expectedMeta |
||
34 | * @param string $newMeta |
||
35 | * @param string $nodeId |
||
36 | * |
||
37 | * @dataProvider provideMetaAndNodeId |
||
38 | */ |
||
39 | public function testEditNode($expectedMeta, $newMeta, $nodeId) |
||
55 | |||
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | public function provideMetaAndNodeId() |
||
66 | } |
||
67 |
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: