1 | <?php |
||
14 | class Config { |
||
15 | |||
16 | const T_PLUGINS_ALL = 0; |
||
17 | const T_PLUGINS_ACTIVE = 1; |
||
18 | const T_PLUGINS_INACTIVE = 2; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $options = array(); |
||
24 | |||
25 | /** |
||
26 | * @var null|function |
||
27 | */ |
||
28 | protected $versionGetter = null; |
||
29 | |||
30 | /** |
||
31 | * @param array $options |
||
32 | */ |
||
33 | 8 | public function __construct(array $options = array(), $versionGetter = null) { |
|
42 | |||
43 | /** |
||
44 | * @param $key |
||
45 | * @return mixed |
||
46 | */ |
||
47 | 5 | public function __get($key) { |
|
50 | |||
51 | /** |
||
52 | * @param $key |
||
53 | * @param null $default |
||
54 | * @return null |
||
55 | */ |
||
56 | 7 | public function getOption($key, $default = null) { |
|
59 | |||
60 | /** |
||
61 | * @param $key |
||
62 | * @param $value |
||
63 | */ |
||
64 | 4 | public function __set($key, $value) { |
|
67 | |||
68 | /** |
||
69 | * @param $type |
||
70 | * @return array |
||
71 | */ |
||
72 | 1 | public function getPluginIds($type) { |
|
104 | |||
105 | /* |
||
106 | * Shorthand methods |
||
107 | */ |
||
108 | |||
109 | /** |
||
110 | * @param $key |
||
111 | * @param array $array |
||
112 | * @param null $default |
||
113 | * @param bool $strict |
||
114 | * @return null |
||
115 | * |
||
116 | * Function is a part of Elgg framework with following license: |
||
117 | |||
118 | Copyright (c) 2013. See COPYRIGHT.txt |
||
119 | http://elgg.org/ |
||
120 | |||
121 | Permission is hereby granted, free of charge, to any person obtaining |
||
122 | a copy of this software and associated documentation files (the |
||
123 | "Software"), to deal in the Software without restriction, including |
||
124 | without limitation the rights to use, copy, modify, merge, publish, |
||
125 | distribute, sublicense, and/or sell copies of the Software, and to |
||
126 | permit persons to whom the Software is furnished to do so, subject to |
||
127 | the following conditions: |
||
128 | |||
129 | The above copyright notice and this permission notice shall be |
||
130 | included in all copies or substantial portions of the Software. |
||
131 | |||
132 | Except as contained in this notice, the name(s) of the above copyright |
||
133 | holders shall not be used in advertising or otherwise to promote the |
||
134 | sale, use or other dealings in this Software without prior written |
||
135 | authorization. |
||
136 | |||
137 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
||
138 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||
139 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
||
140 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
||
141 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
||
142 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
||
143 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||
144 | */ |
||
145 | 4 | private function elggExtract($key, array $array, $default = null, $strict = true) { |
|
156 | |||
157 | /** |
||
158 | * @param array $vars |
||
159 | */ |
||
160 | 4 | public function parseInput(array $vars) { |
|
176 | |||
177 | /** |
||
178 | * @return bool |
||
179 | */ |
||
180 | 5 | public function isFixProblemsEnabled() { |
|
183 | |||
184 | /** |
||
185 | * @return string |
||
186 | */ |
||
187 | 5 | public function getMaxVersion() { |
|
193 | |||
194 | /** |
||
195 | * @return string |
||
196 | */ |
||
197 | 5 | public function getSubPath() { |
|
200 | |||
201 | /** |
||
202 | * @return bool |
||
203 | */ |
||
204 | 7 | public function isIncludeDisabledPluginsEnabled() { |
|
207 | |||
208 | /** |
||
209 | * @return bool |
||
210 | */ |
||
211 | 7 | public function isSkipInactivePluginsEnabled() { |
|
214 | |||
215 | /** |
||
216 | * @return bool |
||
217 | */ |
||
218 | 5 | public function isDeprecatedFunctionsTestEnabled() { |
|
221 | |||
222 | /** |
||
223 | * @return bool |
||
224 | */ |
||
225 | 5 | public function isPrivateFunctionsTestEnabled() { |
|
228 | } |
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..