| 1 | <?php |
||
| 22 | class ConfigPanel extends AbstractPanel implements |
||
| 23 | PanelInterface, |
||
| 24 | PanelInitInterface, |
||
| 25 | DebuggerAwareInterface |
||
| 26 | { |
||
| 27 | use DebuggerAwareTrait; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array|Config |
||
| 31 | */ |
||
| 32 | private $config; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | protected $title = 'Application config'; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param ServiceManager $services |
||
| 41 | */ |
||
| 42 | public function init(ServiceManager $services) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return array |
||
| 50 | * @throws Exception\LogicException |
||
| 51 | */ |
||
| 52 | protected function getConfig() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * {@inheritdoc} |
||
| 62 | */ |
||
| 63 | public function getTab() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * {@inheritdoc} |
||
| 70 | */ |
||
| 71 | public function getPanel() |
||
| 75 | } |
||
| 76 |
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: