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 | 18 | ||
22 | /** |
||
23 | * @param \Wandu\Config\Contracts\Loader $loader |
||
24 | */ |
||
25 | public function pushLoader(Loader $loader) |
||
29 | 2 | ||
30 | /** |
||
31 | 1 | * @param array $appender |
|
32 | */ |
||
33 | public function merge(array $appender) |
||
37 | 2 | ||
38 | /** |
||
39 | 2 | * @param mixed $origin |
|
40 | 1 | * @param mixed $appender |
|
41 | * @return mixed |
||
42 | 1 | */ |
|
43 | private function recursiveMerge($origin, $appender) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function toArray(): array |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | public function has($name): bool |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public function get($name, $default = null) |
||
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | public function subset($name): ConfigContract |
||
120 | |||
121 | /** |
||
122 | * {@inheritdoc} |
||
123 | */ |
||
124 | public function offsetExists($offset) |
||
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | public function offsetGet($offset) |
||
140 | |||
141 | /** |
||
142 | * {@inheritdoc} |
||
143 | */ |
||
144 | public function offsetSet($offset, $value) |
||
148 | |||
149 | /** |
||
150 | * {@inheritdoc} |
||
151 | */ |
||
152 | 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..