|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<files psalm-version="5.7.1@8e0fd880141f236847ab49a06f94f788d41a4292"> |
| 2 | +<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e"> |
3 | 3 | <file src="src/Cache.php"> |
4 | 4 | <MixedAssignment> |
5 | | - <code>$value</code> |
| 5 | + <code><![CDATA[$value]]></code> |
6 | 6 | </MixedAssignment> |
7 | 7 | <MixedInferredReturnType> |
8 | | - <code>bool</code> |
| 8 | + <code><![CDATA[bool]]></code> |
9 | 9 | </MixedInferredReturnType> |
10 | 10 | <MixedReturnStatement> |
11 | 11 | <code><![CDATA[$this->cache->flush()]]></code> |
|
18 | 18 | <InvalidReturnStatement> |
19 | 19 | <code><![CDATA[$this->output->error('Default cache system does not support tags')]]></code> |
20 | 20 | </InvalidReturnStatement> |
21 | | - <MixedInferredReturnType> |
22 | | - <code>void</code> |
23 | | - </MixedInferredReturnType> |
24 | 21 | <MixedMethodCall> |
25 | | - <code>config</code> |
26 | | - <code>flush</code> |
27 | | - <code>getCache</code> |
| 22 | + <code><![CDATA[config]]></code> |
| 23 | + <code><![CDATA[flush]]></code> |
| 24 | + <code><![CDATA[getCache]]></code> |
28 | 25 | </MixedMethodCall> |
29 | 26 | <NonInvariantDocblockPropertyType> |
30 | | - <code>$description</code> |
| 27 | + <code><![CDATA[$description]]></code> |
31 | 28 | </NonInvariantDocblockPropertyType> |
32 | 29 | <PropertyNotSetInConstructor> |
33 | | - <code>Clear</code> |
34 | | - <code>Clear</code> |
35 | | - <code>Clear</code> |
36 | | - <code>Clear</code> |
| 30 | + <code><![CDATA[Clear]]></code> |
| 31 | + <code><![CDATA[Clear]]></code> |
| 32 | + <code><![CDATA[Clear]]></code> |
| 33 | + <code><![CDATA[Clear]]></code> |
37 | 34 | </PropertyNotSetInConstructor> |
38 | 35 | <UndefinedFunction> |
39 | 36 | <code><![CDATA[config('cache.default')]]></code> |
40 | 37 | </UndefinedFunction> |
41 | 38 | </file> |
42 | 39 | <file src="src/Console/Update.php"> |
43 | 40 | <MixedArgument> |
44 | | - <code>$result</code> |
45 | | - <code>$service</code> |
46 | | - <code>$service</code> |
| 41 | + <code><![CDATA[$result]]></code> |
| 42 | + <code><![CDATA[$service]]></code> |
| 43 | + <code><![CDATA[$service]]></code> |
47 | 44 | </MixedArgument> |
48 | 45 | <MixedAssignment> |
49 | | - <code>$result</code> |
| 46 | + <code><![CDATA[$result]]></code> |
50 | 47 | </MixedAssignment> |
51 | 48 | <MixedMethodCall> |
52 | | - <code>getService</code> |
| 49 | + <code><![CDATA[getService]]></code> |
53 | 50 | </MixedMethodCall> |
54 | 51 | <NonInvariantDocblockPropertyType> |
55 | | - <code>$description</code> |
| 52 | + <code><![CDATA[$description]]></code> |
56 | 53 | </NonInvariantDocblockPropertyType> |
57 | 54 | <PropertyNotSetInConstructor> |
58 | | - <code>Update</code> |
59 | | - <code>Update</code> |
60 | | - <code>Update</code> |
61 | | - <code>Update</code> |
| 55 | + <code><![CDATA[Update]]></code> |
| 56 | + <code><![CDATA[Update]]></code> |
| 57 | + <code><![CDATA[Update]]></code> |
| 58 | + <code><![CDATA[Update]]></code> |
62 | 59 | </PropertyNotSetInConstructor> |
63 | 60 | </file> |
64 | 61 | <file src="src/GeoIP.php"> |
|
78 | 75 | <code><![CDATA[$this->cache]]></code> |
79 | 76 | </InvalidReturnStatement> |
80 | 77 | <InvalidReturnType> |
81 | | - <code>\InteractionDesignFoundation\GeoIP\Cache</code> |
| 78 | + <code><![CDATA[\InteractionDesignFoundation\GeoIP\Cache]]></code> |
82 | 79 | </InvalidReturnType> |
83 | 80 | <LessSpecificReturnStatement> |
84 | 81 | <code><![CDATA[$this->service]]></code> |
85 | 82 | </LessSpecificReturnStatement> |
86 | 83 | <MixedArgument> |
87 | | - <code>$config</code> |
| 84 | + <code><![CDATA[$config]]></code> |
88 | 85 | <code><![CDATA[$this->config('cache_expires', 30)]]></code> |
89 | 86 | <code><![CDATA[$this->config('cache_tags')]]></code> |
90 | 87 | <code><![CDATA[$this->config('default_location', [])]]></code> |
91 | 88 | </MixedArgument> |
92 | 89 | <MixedAssignment> |
93 | | - <code>$class</code> |
94 | | - <code>$config</code> |
95 | | - <code>$log</code> |
| 90 | + <code><![CDATA[$class]]></code> |
| 91 | + <code><![CDATA[$config]]></code> |
| 92 | + <code><![CDATA[$log]]></code> |
96 | 93 | </MixedAssignment> |
97 | 94 | <MixedInferredReturnType> |
98 | | - <code>string</code> |
| 95 | + <code><![CDATA[string]]></code> |
99 | 96 | </MixedInferredReturnType> |
100 | 97 | <MixedMethodCall> |
101 | | - <code>error</code> |
102 | | - <code>new $class($config)</code> |
103 | | - <code>pushHandler</code> |
| 98 | + <code><![CDATA[error]]></code> |
| 99 | + <code><![CDATA[new $class($config)]]></code> |
| 100 | + <code><![CDATA[pushHandler]]></code> |
104 | 101 | </MixedMethodCall> |
105 | 102 | <MixedOperand> |
106 | 103 | <code><![CDATA[$this->config('service')]]></code> |
|
109 | 106 | <code><![CDATA[Arr::get($this->currencies, $iso)]]></code> |
110 | 107 | </MixedReturnStatement> |
111 | 108 | <MoreSpecificReturnType> |
112 | | - <code>\InteractionDesignFoundation\GeoIP\Contracts\ServiceInterface</code> |
| 109 | + <code><![CDATA[\InteractionDesignFoundation\GeoIP\Contracts\ServiceInterface]]></code> |
113 | 110 | </MoreSpecificReturnType> |
114 | 111 | <PossiblyInvalidArgument> |
115 | | - <code>$ip</code> |
116 | | - <code>$ip</code> |
117 | | - <code>$ip</code> |
| 112 | + <code><![CDATA[$ip]]></code> |
| 113 | + <code><![CDATA[$ip]]></code> |
| 114 | + <code><![CDATA[$ip]]></code> |
118 | 115 | </PossiblyInvalidArgument> |
119 | 116 | <PossiblyNullArgument> |
120 | | - <code>$ip</code> |
| 117 | + <code><![CDATA[$ip]]></code> |
121 | 118 | <code><![CDATA[$location->iso_code]]></code> |
122 | 119 | </PossiblyNullArgument> |
123 | 120 | <PossiblyNullPropertyAssignmentValue> |
124 | | - <code>null</code> |
125 | | - <code>null</code> |
126 | | - <code>null</code> |
| 121 | + <code><![CDATA[null]]></code> |
| 122 | + <code><![CDATA[null]]></code> |
| 123 | + <code><![CDATA[null]]></code> |
127 | 124 | </PossiblyNullPropertyAssignmentValue> |
128 | 125 | <PropertyNotSetInConstructor> |
129 | | - <code>$service</code> |
| 126 | + <code><![CDATA[$service]]></code> |
130 | 127 | </PropertyNotSetInConstructor> |
131 | 128 | <PropertyTypeCoercion> |
132 | | - <code>new $class($config)</code> |
| 129 | + <code><![CDATA[new $class($config)]]></code> |
133 | 130 | </PropertyTypeCoercion> |
134 | 131 | <RedundantCondition> |
135 | 132 | <code><![CDATA['some']]></code> |
136 | 133 | </RedundantCondition> |
137 | 134 | <UndefinedClass> |
138 | | - <code>Logger</code> |
139 | | - <code>Logger</code> |
140 | | - <code>StreamHandler</code> |
| 135 | + <code><![CDATA[Logger]]></code> |
| 136 | + <code><![CDATA[Logger]]></code> |
| 137 | + <code><![CDATA[StreamHandler]]></code> |
141 | 138 | </UndefinedClass> |
142 | 139 | </file> |
143 | 140 | <file src="src/GeoIPServiceProvider.php"> |
144 | 141 | <MissingClosureParamType> |
145 | | - <code>$app</code> |
| 142 | + <code><![CDATA[$app]]></code> |
146 | 143 | </MissingClosureParamType> |
147 | 144 | <MixedArgument> |
148 | 145 | <code><![CDATA[$app->config->get('geoip', [])]]></code> |
|
152 | 149 | <code><![CDATA[$app['cache']]]></code> |
153 | 150 | </MixedArrayAccess> |
154 | 151 | <MixedMethodCall> |
155 | | - <code>get</code> |
| 152 | + <code><![CDATA[get]]></code> |
156 | 153 | </MixedMethodCall> |
157 | 154 | <MixedPropertyFetch> |
158 | 155 | <code><![CDATA[$app->config]]></code> |
|
163 | 160 | </file> |
164 | 161 | <file src="src/Location.php"> |
165 | 162 | <MissingParamType> |
166 | | - <code>$key</code> |
167 | | - <code>$value</code> |
| 163 | + <code><![CDATA[$key]]></code> |
| 164 | + <code><![CDATA[$value]]></code> |
168 | 165 | </MissingParamType> |
169 | 166 | <MissingTemplateParam> |
170 | | - <code>ArrayAccess</code> |
| 167 | + <code><![CDATA[ArrayAccess]]></code> |
171 | 168 | </MissingTemplateParam> |
172 | 169 | <MixedArgument> |
173 | | - <code>$key</code> |
| 170 | + <code><![CDATA[$key]]></code> |
174 | 171 | </MixedArgument> |
175 | 172 | <MixedAssignment> |
176 | | - <code>$value</code> |
| 173 | + <code><![CDATA[$value]]></code> |
177 | 174 | </MixedAssignment> |
178 | 175 | <MixedInferredReturnType> |
179 | | - <code>bool</code> |
| 176 | + <code><![CDATA[bool]]></code> |
180 | 177 | </MixedInferredReturnType> |
181 | 178 | <MixedReturnStatement> |
182 | | - <code>is_null($value) ? false : $value</code> |
183 | | - <code>is_null($value) ? false : $value</code> |
| 179 | + <code><![CDATA[is_null($value) ? false : $value]]></code> |
| 180 | + <code><![CDATA[is_null($value) ? false : $value]]></code> |
184 | 181 | </MixedReturnStatement> |
185 | 182 | </file> |
186 | 183 | <file src="src/Services/IPApi.php"> |
187 | 184 | <MixedArgument> |
188 | | - <code>$data[0]</code> |
189 | | - <code>$data[0]</code> |
| 185 | + <code><![CDATA[$data[0]]]></code> |
| 186 | + <code><![CDATA[$data[0]]]></code> |
190 | 187 | <code><![CDATA[$json->countryCode]]></code> |
191 | | - <code>$path</code> |
| 188 | + <code><![CDATA[$path]]></code> |
192 | 189 | <code><![CDATA[$this->config('continent_path')]]></code> |
193 | 190 | <code><![CDATA[$this->config('continent_path')]]></code> |
194 | 191 | </MixedArgument> |
195 | 192 | <MixedAssignment> |
196 | 193 | <code><![CDATA[$base['query']['key']]]></code> |
197 | | - <code>$json</code> |
198 | | - <code>$path</code> |
| 194 | + <code><![CDATA[$json]]></code> |
| 195 | + <code><![CDATA[$path]]></code> |
199 | 196 | <code><![CDATA[$this->continents]]></code> |
200 | 197 | </MixedAssignment> |
201 | 198 | <MixedInferredReturnType> |
202 | | - <code>string</code> |
| 199 | + <code><![CDATA[string]]></code> |
203 | 200 | </MixedInferredReturnType> |
204 | 201 | <MixedOperand> |
205 | 202 | <code><![CDATA[$json->message]]></code> |
|
221 | 218 | <code><![CDATA[Arr::get($this->continents, $code, 'Unknown')]]></code> |
222 | 219 | </MixedReturnStatement> |
223 | 220 | <PossiblyNullArrayOffset> |
224 | | - <code>$output</code> |
| 221 | + <code><![CDATA[$output]]></code> |
225 | 222 | </PossiblyNullArrayOffset> |
226 | 223 | <PropertyNotSetInConstructor> |
227 | | - <code>$continents</code> |
| 224 | + <code><![CDATA[$continents]]></code> |
228 | 225 | </PropertyNotSetInConstructor> |
229 | 226 | <RedundantConditionGivenDocblockType> |
230 | 227 | <code><![CDATA[$this->client->getErrors() !== null]]></code> |
|
233 | 230 | </file> |
234 | 231 | <file src="src/Services/IPData.php"> |
235 | 232 | <MixedArgument> |
236 | | - <code>$data[0]</code> |
237 | | - <code>$json</code> |
238 | | - <code>$json</code> |
239 | | - <code>$json</code> |
| 233 | + <code><![CDATA[$data[0]]]></code> |
| 234 | + <code><![CDATA[$json]]></code> |
| 235 | + <code><![CDATA[$json]]></code> |
| 236 | + <code><![CDATA[$json]]></code> |
240 | 237 | </MixedArgument> |
241 | 238 | <MixedArrayAccess> |
242 | 239 | <code><![CDATA[$json['city']]]></code> |
|
249 | 246 | <code><![CDATA[$json['region_code']]]></code> |
250 | 247 | </MixedArrayAccess> |
251 | 248 | <MixedAssignment> |
252 | | - <code>$json</code> |
| 249 | + <code><![CDATA[$json]]></code> |
253 | 250 | </MixedAssignment> |
254 | 251 | <RedundantConditionGivenDocblockType> |
255 | 252 | <code><![CDATA[$this->client->getErrors() !== null]]></code> |
256 | 253 | </RedundantConditionGivenDocblockType> |
257 | 254 | </file> |
258 | 255 | <file src="src/Services/IPFinder.php"> |
259 | 256 | <MixedArgument> |
260 | | - <code>$data[0]</code> |
261 | | - <code>$json</code> |
| 257 | + <code><![CDATA[$data[0]]]></code> |
| 258 | + <code><![CDATA[$json]]></code> |
262 | 259 | </MixedArgument> |
263 | 260 | <MixedAssignment> |
264 | | - <code>$json</code> |
| 261 | + <code><![CDATA[$json]]></code> |
265 | 262 | </MixedAssignment> |
266 | 263 | <RedundantConditionGivenDocblockType> |
267 | 264 | <code><![CDATA[$this->client->getErrors() !== null]]></code> |
268 | 265 | </RedundantConditionGivenDocblockType> |
269 | 266 | </file> |
270 | 267 | <file src="src/Services/IPGeoLocation.php"> |
271 | 268 | <MixedArgument> |
272 | | - <code>$data[0]</code> |
273 | | - <code>$json</code> |
| 269 | + <code><![CDATA[$data[0]]]></code> |
| 270 | + <code><![CDATA[$json]]></code> |
274 | 271 | </MixedArgument> |
275 | 272 | <MixedAssignment> |
276 | | - <code>$json</code> |
| 273 | + <code><![CDATA[$json]]></code> |
277 | 274 | </MixedAssignment> |
278 | 275 | <MixedOperand> |
279 | 276 | <code><![CDATA[$this->config('key')]]></code> |
|
284 | 281 | </file> |
285 | 282 | <file src="src/Services/MaxMindDatabase.php"> |
286 | 283 | <ImplicitToStringCast> |
287 | | - <code>$file</code> |
| 284 | + <code><![CDATA[$file]]></code> |
288 | 285 | </ImplicitToStringCast> |
289 | 286 | <MissingClosureParamType> |
290 | | - <code>$directory</code> |
| 287 | + <code><![CDATA[$directory]]></code> |
291 | 288 | </MissingClosureParamType> |
292 | 289 | <MixedArgument> |
293 | | - <code>$directory</code> |
294 | | - <code>$directory</code> |
295 | | - <code>$path</code> |
296 | | - <code>$path</code> |
297 | | - <code>$path</code> |
298 | | - <code>$path</code> |
| 290 | + <code><![CDATA[$directory]]></code> |
| 291 | + <code><![CDATA[$directory]]></code> |
| 292 | + <code><![CDATA[$path]]></code> |
| 293 | + <code><![CDATA[$path]]></code> |
| 294 | + <code><![CDATA[$path]]></code> |
| 295 | + <code><![CDATA[$path]]></code> |
299 | 296 | <code><![CDATA[$this->config('database_path')]]></code> |
300 | 297 | <code><![CDATA[$this->config('locales', ['en'])]]></code> |
301 | 298 | <code><![CDATA[$this->config('update_url')]]></code> |
302 | 299 | </MixedArgument> |
303 | 300 | <MixedAssignment> |
304 | | - <code>$file</code> |
305 | | - <code>$path</code> |
| 301 | + <code><![CDATA[$file]]></code> |
| 302 | + <code><![CDATA[$path]]></code> |
306 | 303 | </MixedAssignment> |
307 | 304 | <MixedMethodCall> |
308 | | - <code>getFilename</code> |
| 305 | + <code><![CDATA[getFilename]]></code> |
309 | 306 | </MixedMethodCall> |
310 | 307 | <PossiblyInvalidMethodCall> |
311 | | - <code>getPathName</code> |
312 | | - <code>isDir</code> |
| 308 | + <code><![CDATA[getPathName]]></code> |
| 309 | + <code><![CDATA[isDir]]></code> |
313 | 310 | </PossiblyInvalidMethodCall> |
314 | 311 | </file> |
315 | 312 | <file src="src/Services/MaxMindWebService.php"> |
|
324 | 321 | <code><![CDATA[is_null($this->errors)]]></code> |
325 | 322 | </DocblockTypeContradiction> |
326 | 323 | <InvalidScalarArgument> |
327 | | - <code>$response</code> |
328 | | - <code>$response</code> |
| 324 | + <code><![CDATA[$response]]></code> |
| 325 | + <code><![CDATA[$response]]></code> |
329 | 326 | </InvalidScalarArgument> |
330 | 327 | <MixedArgument> |
331 | | - <code>$header_size</code> |
332 | | - <code>$header_size</code> |
| 328 | + <code><![CDATA[$header_size]]></code> |
| 329 | + <code><![CDATA[$header_size]]></code> |
333 | 330 | <code><![CDATA[Arr::get($this->config, 'headers', [])]]></code> |
334 | 331 | <code><![CDATA[Arr::get($this->config, 'query', [])]]></code> |
335 | 332 | <code><![CDATA[Arr::get($this->config, 'query', [])]]></code> |
336 | 333 | </MixedArgument> |
337 | 334 | <MixedAssignment> |
338 | | - <code>$header_size</code> |
| 335 | + <code><![CDATA[$header_size]]></code> |
339 | 336 | <code><![CDATA[$this->http_code]]></code> |
340 | 337 | </MixedAssignment> |
341 | 338 | <MixedOperand> |
342 | 339 | <code><![CDATA[Arr::get($this->config, 'base_uri')]]></code> |
343 | 340 | </MixedOperand> |
344 | 341 | <PossiblyNullPropertyAssignmentValue> |
345 | | - <code>null</code> |
346 | | - <code>null</code> |
| 342 | + <code><![CDATA[null]]></code> |
| 343 | + <code><![CDATA[null]]></code> |
347 | 344 | </PossiblyNullPropertyAssignmentValue> |
348 | 345 | </file> |
349 | 346 | <file src="src/helpers.php"> |
350 | 347 | <MixedInferredReturnType> |
351 | | - <code>\InteractionDesignFoundation\GeoIP\GeoIP|\InteractionDesignFoundation\GeoIP\Location</code> |
| 348 | + <code><![CDATA[\InteractionDesignFoundation\GeoIP\GeoIP|\InteractionDesignFoundation\GeoIP\Location]]></code> |
352 | 349 | </MixedInferredReturnType> |
353 | 350 | <MixedMethodCall> |
354 | | - <code>getLocation</code> |
| 351 | + <code><![CDATA[getLocation]]></code> |
355 | 352 | </MixedMethodCall> |
356 | 353 | <MixedReturnStatement> |
357 | 354 | <code><![CDATA[app('geoip')]]></code> |
|
0 commit comments