1 | <?php |
||
11 | class ListController extends AbstractActionController |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | private $query; |
||
17 | |||
18 | /** |
||
19 | * @var InputFilterInterface |
||
20 | */ |
||
21 | private $inputFilter; |
||
22 | |||
23 | /** |
||
24 | * @var RepositoryInterface |
||
25 | */ |
||
26 | private $repository; |
||
27 | |||
28 | /** |
||
29 | * @var ListViewModelInterface |
||
30 | */ |
||
31 | private $viewModel; |
||
32 | |||
33 | /** |
||
34 | * ListController constructor. |
||
35 | * @param array $query |
||
36 | * @param InputFilterInterface $inputFilter |
||
37 | * @param RepositoryInterface $repository |
||
38 | * @param ListViewModelInterface $viewModel |
||
39 | */ |
||
40 | public function __construct( |
||
52 | |||
53 | /** |
||
54 | * Execute the request |
||
55 | * |
||
56 | * @param MvcEvent $e |
||
57 | * @return ListViewModelInterface |
||
58 | */ |
||
59 | public function onDispatch(MvcEvent $e) |
||
87 | } |
||
88 |
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: