1 | <?php |
||
9 | class Config implements ConfigContract |
||
10 | { |
||
11 | /** @var array */ |
||
12 | protected $items; |
||
13 | |||
14 | /** |
||
15 | * @param array $items |
||
16 | */ |
||
17 | 18 | public function __construct(array $items = []) |
|
21 | |||
22 | /** |
||
23 | * @param \Wandu\Config\Contracts\Loader $loader |
||
24 | */ |
||
25 | 1 | public function append(Loader $loader) |
|
29 | |||
30 | /** |
||
31 | * @param array $appender |
||
32 | */ |
||
33 | 3 | public function merge(array $appender) |
|
37 | |||
38 | /** |
||
39 | * @param mixed $origin |
||
40 | * @param mixed $appender |
||
41 | * @return mixed |
||
42 | */ |
||
43 | 3 | private function recursiveMerge($origin, $appender) |
|
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | 3 | public function toArray(): array |
|
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | 1 | public function has($name): bool |
|
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | 9 | public function get($name, $default = null) |
|
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | 1 | public function subset($name): ConfigContract |
|
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | */ |
||
124 | public function offsetExists($offset) |
||
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | 1 | public function offsetGet($offset) |
|
140 | |||
141 | /** |
||
142 | * {@inheritdoc} |
||
143 | */ |
||
144 | 1 | public function offsetSet($offset, $value) |
|
148 | |||
149 | /** |
||
150 | * {@inheritdoc} |
||
151 | */ |
||
152 | 1 | public function offsetUnset($offset) |
|
156 | } |
||
157 |
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..