1 | <?php |
||
20 | class ConfigPanel extends AbstractPanel implements |
||
21 | PanelInterface, |
||
22 | PanelInitInterface |
||
23 | { |
||
24 | /** |
||
25 | * @var array|Config |
||
26 | */ |
||
27 | private $config; |
||
28 | |||
29 | /** |
||
30 | * @var DebuggerInterface |
||
31 | */ |
||
32 | private $debugger; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $title = 'Application config'; |
||
38 | |||
39 | /** |
||
40 | * @var string |
||
41 | */ |
||
42 | protected $content = ''; |
||
43 | |||
44 | /** |
||
45 | * @param ServiceManager $services |
||
46 | */ |
||
47 | public function init(ServiceManager $services) |
||
52 | |||
53 | /** |
||
54 | * @return array |
||
55 | * @throws Exception\LogicException |
||
56 | */ |
||
57 | protected function getConfig() |
||
64 | |||
65 | /** |
||
66 | * @param array $config |
||
67 | * @return $this |
||
68 | */ |
||
69 | public function setConfig(array $config) |
||
74 | |||
75 | /** |
||
76 | * @return DebuggerInterface |
||
77 | * @throws Exception\LogicException |
||
78 | */ |
||
79 | protected function getDebugger() |
||
86 | |||
87 | /** |
||
88 | * @param object|DebuggerInterface $debugger |
||
89 | * @return $this |
||
90 | */ |
||
91 | public function setDebugger(DebuggerInterface $debugger) |
||
96 | |||
97 | /** |
||
98 | * {@inheritdoc} |
||
99 | */ |
||
100 | public function getTab() |
||
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | public function getPanel() |
||
112 | } |
||
113 |
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: