1 | <?php |
||
16 | class Struct implements ConfigInterface |
||
17 | { |
||
18 | /** |
||
19 | * Store |
||
20 | * |
||
21 | * @var Config |
||
22 | */ |
||
23 | private $store; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * Load config |
||
28 | * |
||
29 | * @param array $config |
||
30 | */ |
||
31 | public function __construct(array $config) |
||
35 | |||
36 | |||
37 | /** |
||
38 | * Get from config |
||
39 | * |
||
40 | * @param string $name |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function __get(string $name) |
||
47 | |||
48 | |||
49 | /** |
||
50 | * Return map |
||
51 | * |
||
52 | * @return Config |
||
53 | */ |
||
54 | public function map(): Config |
||
58 | |||
59 | |||
60 | /** |
||
61 | * map Array |
||
62 | * |
||
63 | * @param array $config |
||
64 | * @return Config |
||
65 | */ |
||
66 | protected function mapArray(array $array): Config |
||
79 | } |
||
80 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..