1 | <?php |
||
13 | class CommonView extends Config implements |
||
14 | FeatureInterface, |
||
15 | ViewConfigInterface |
||
16 | { |
||
17 | /** |
||
18 | * Config key |
||
19 | */ |
||
20 | const COMMON = 'common'; |
||
21 | |||
22 | /** |
||
23 | * @param array $config |
||
24 | */ |
||
25 | public function __construct(array $config = []) |
||
30 | |||
31 | private function createSpec(array $config, &$spec= []) |
||
53 | } |
||
54 |
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: