Skip to content

Commit de4dec1

Browse files
committed
Update Psalm baseline
1 parent 35d5ab6 commit de4dec1

File tree

1 file changed

+94
-97
lines changed

1 file changed

+94
-97
lines changed

psalm-baseline.xml

Lines changed: 94 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.7.1@8e0fd880141f236847ab49a06f94f788d41a4292">
2+
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
33
<file src="src/Cache.php">
44
<MixedAssignment>
5-
<code>$value</code>
5+
<code><![CDATA[$value]]></code>
66
</MixedAssignment>
77
<MixedInferredReturnType>
8-
<code>bool</code>
8+
<code><![CDATA[bool]]></code>
99
</MixedInferredReturnType>
1010
<MixedReturnStatement>
1111
<code><![CDATA[$this->cache->flush()]]></code>
@@ -18,47 +18,44 @@
1818
<InvalidReturnStatement>
1919
<code><![CDATA[$this->output->error('Default cache system does not support tags')]]></code>
2020
</InvalidReturnStatement>
21-
<MixedInferredReturnType>
22-
<code>void</code>
23-
</MixedInferredReturnType>
2421
<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>
2825
</MixedMethodCall>
2926
<NonInvariantDocblockPropertyType>
30-
<code>$description</code>
27+
<code><![CDATA[$description]]></code>
3128
</NonInvariantDocblockPropertyType>
3229
<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>
3734
</PropertyNotSetInConstructor>
3835
<UndefinedFunction>
3936
<code><![CDATA[config('cache.default')]]></code>
4037
</UndefinedFunction>
4138
</file>
4239
<file src="src/Console/Update.php">
4340
<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>
4744
</MixedArgument>
4845
<MixedAssignment>
49-
<code>$result</code>
46+
<code><![CDATA[$result]]></code>
5047
</MixedAssignment>
5148
<MixedMethodCall>
52-
<code>getService</code>
49+
<code><![CDATA[getService]]></code>
5350
</MixedMethodCall>
5451
<NonInvariantDocblockPropertyType>
55-
<code>$description</code>
52+
<code><![CDATA[$description]]></code>
5653
</NonInvariantDocblockPropertyType>
5754
<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>
6259
</PropertyNotSetInConstructor>
6360
</file>
6461
<file src="src/GeoIP.php">
@@ -78,29 +75,29 @@
7875
<code><![CDATA[$this->cache]]></code>
7976
</InvalidReturnStatement>
8077
<InvalidReturnType>
81-
<code>\InteractionDesignFoundation\GeoIP\Cache</code>
78+
<code><![CDATA[\InteractionDesignFoundation\GeoIP\Cache]]></code>
8279
</InvalidReturnType>
8380
<LessSpecificReturnStatement>
8481
<code><![CDATA[$this->service]]></code>
8582
</LessSpecificReturnStatement>
8683
<MixedArgument>
87-
<code>$config</code>
84+
<code><![CDATA[$config]]></code>
8885
<code><![CDATA[$this->config('cache_expires', 30)]]></code>
8986
<code><![CDATA[$this->config('cache_tags')]]></code>
9087
<code><![CDATA[$this->config('default_location', [])]]></code>
9188
</MixedArgument>
9289
<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>
9693
</MixedAssignment>
9794
<MixedInferredReturnType>
98-
<code>string</code>
95+
<code><![CDATA[string]]></code>
9996
</MixedInferredReturnType>
10097
<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>
104101
</MixedMethodCall>
105102
<MixedOperand>
106103
<code><![CDATA[$this->config('service')]]></code>
@@ -109,40 +106,40 @@
109106
<code><![CDATA[Arr::get($this->currencies, $iso)]]></code>
110107
</MixedReturnStatement>
111108
<MoreSpecificReturnType>
112-
<code>\InteractionDesignFoundation\GeoIP\Contracts\ServiceInterface</code>
109+
<code><![CDATA[\InteractionDesignFoundation\GeoIP\Contracts\ServiceInterface]]></code>
113110
</MoreSpecificReturnType>
114111
<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>
118115
</PossiblyInvalidArgument>
119116
<PossiblyNullArgument>
120-
<code>$ip</code>
117+
<code><![CDATA[$ip]]></code>
121118
<code><![CDATA[$location->iso_code]]></code>
122119
</PossiblyNullArgument>
123120
<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>
127124
</PossiblyNullPropertyAssignmentValue>
128125
<PropertyNotSetInConstructor>
129-
<code>$service</code>
126+
<code><![CDATA[$service]]></code>
130127
</PropertyNotSetInConstructor>
131128
<PropertyTypeCoercion>
132-
<code>new $class($config)</code>
129+
<code><![CDATA[new $class($config)]]></code>
133130
</PropertyTypeCoercion>
134131
<RedundantCondition>
135132
<code><![CDATA['some']]></code>
136133
</RedundantCondition>
137134
<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>
141138
</UndefinedClass>
142139
</file>
143140
<file src="src/GeoIPServiceProvider.php">
144141
<MissingClosureParamType>
145-
<code>$app</code>
142+
<code><![CDATA[$app]]></code>
146143
</MissingClosureParamType>
147144
<MixedArgument>
148145
<code><![CDATA[$app->config->get('geoip', [])]]></code>
@@ -152,7 +149,7 @@
152149
<code><![CDATA[$app['cache']]]></code>
153150
</MixedArrayAccess>
154151
<MixedMethodCall>
155-
<code>get</code>
152+
<code><![CDATA[get]]></code>
156153
</MixedMethodCall>
157154
<MixedPropertyFetch>
158155
<code><![CDATA[$app->config]]></code>
@@ -163,43 +160,43 @@
163160
</file>
164161
<file src="src/Location.php">
165162
<MissingParamType>
166-
<code>$key</code>
167-
<code>$value</code>
163+
<code><![CDATA[$key]]></code>
164+
<code><![CDATA[$value]]></code>
168165
</MissingParamType>
169166
<MissingTemplateParam>
170-
<code>ArrayAccess</code>
167+
<code><![CDATA[ArrayAccess]]></code>
171168
</MissingTemplateParam>
172169
<MixedArgument>
173-
<code>$key</code>
170+
<code><![CDATA[$key]]></code>
174171
</MixedArgument>
175172
<MixedAssignment>
176-
<code>$value</code>
173+
<code><![CDATA[$value]]></code>
177174
</MixedAssignment>
178175
<MixedInferredReturnType>
179-
<code>bool</code>
176+
<code><![CDATA[bool]]></code>
180177
</MixedInferredReturnType>
181178
<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>
184181
</MixedReturnStatement>
185182
</file>
186183
<file src="src/Services/IPApi.php">
187184
<MixedArgument>
188-
<code>$data[0]</code>
189-
<code>$data[0]</code>
185+
<code><![CDATA[$data[0]]]></code>
186+
<code><![CDATA[$data[0]]]></code>
190187
<code><![CDATA[$json->countryCode]]></code>
191-
<code>$path</code>
188+
<code><![CDATA[$path]]></code>
192189
<code><![CDATA[$this->config('continent_path')]]></code>
193190
<code><![CDATA[$this->config('continent_path')]]></code>
194191
</MixedArgument>
195192
<MixedAssignment>
196193
<code><![CDATA[$base['query']['key']]]></code>
197-
<code>$json</code>
198-
<code>$path</code>
194+
<code><![CDATA[$json]]></code>
195+
<code><![CDATA[$path]]></code>
199196
<code><![CDATA[$this->continents]]></code>
200197
</MixedAssignment>
201198
<MixedInferredReturnType>
202-
<code>string</code>
199+
<code><![CDATA[string]]></code>
203200
</MixedInferredReturnType>
204201
<MixedOperand>
205202
<code><![CDATA[$json->message]]></code>
@@ -221,10 +218,10 @@
221218
<code><![CDATA[Arr::get($this->continents, $code, 'Unknown')]]></code>
222219
</MixedReturnStatement>
223220
<PossiblyNullArrayOffset>
224-
<code>$output</code>
221+
<code><![CDATA[$output]]></code>
225222
</PossiblyNullArrayOffset>
226223
<PropertyNotSetInConstructor>
227-
<code>$continents</code>
224+
<code><![CDATA[$continents]]></code>
228225
</PropertyNotSetInConstructor>
229226
<RedundantConditionGivenDocblockType>
230227
<code><![CDATA[$this->client->getErrors() !== null]]></code>
@@ -233,10 +230,10 @@
233230
</file>
234231
<file src="src/Services/IPData.php">
235232
<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>
240237
</MixedArgument>
241238
<MixedArrayAccess>
242239
<code><![CDATA[$json['city']]]></code>
@@ -249,31 +246,31 @@
249246
<code><![CDATA[$json['region_code']]]></code>
250247
</MixedArrayAccess>
251248
<MixedAssignment>
252-
<code>$json</code>
249+
<code><![CDATA[$json]]></code>
253250
</MixedAssignment>
254251
<RedundantConditionGivenDocblockType>
255252
<code><![CDATA[$this->client->getErrors() !== null]]></code>
256253
</RedundantConditionGivenDocblockType>
257254
</file>
258255
<file src="src/Services/IPFinder.php">
259256
<MixedArgument>
260-
<code>$data[0]</code>
261-
<code>$json</code>
257+
<code><![CDATA[$data[0]]]></code>
258+
<code><![CDATA[$json]]></code>
262259
</MixedArgument>
263260
<MixedAssignment>
264-
<code>$json</code>
261+
<code><![CDATA[$json]]></code>
265262
</MixedAssignment>
266263
<RedundantConditionGivenDocblockType>
267264
<code><![CDATA[$this->client->getErrors() !== null]]></code>
268265
</RedundantConditionGivenDocblockType>
269266
</file>
270267
<file src="src/Services/IPGeoLocation.php">
271268
<MixedArgument>
272-
<code>$data[0]</code>
273-
<code>$json</code>
269+
<code><![CDATA[$data[0]]]></code>
270+
<code><![CDATA[$json]]></code>
274271
</MixedArgument>
275272
<MixedAssignment>
276-
<code>$json</code>
273+
<code><![CDATA[$json]]></code>
277274
</MixedAssignment>
278275
<MixedOperand>
279276
<code><![CDATA[$this->config('key')]]></code>
@@ -284,32 +281,32 @@
284281
</file>
285282
<file src="src/Services/MaxMindDatabase.php">
286283
<ImplicitToStringCast>
287-
<code>$file</code>
284+
<code><![CDATA[$file]]></code>
288285
</ImplicitToStringCast>
289286
<MissingClosureParamType>
290-
<code>$directory</code>
287+
<code><![CDATA[$directory]]></code>
291288
</MissingClosureParamType>
292289
<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>
299296
<code><![CDATA[$this->config('database_path')]]></code>
300297
<code><![CDATA[$this->config('locales', ['en'])]]></code>
301298
<code><![CDATA[$this->config('update_url')]]></code>
302299
</MixedArgument>
303300
<MixedAssignment>
304-
<code>$file</code>
305-
<code>$path</code>
301+
<code><![CDATA[$file]]></code>
302+
<code><![CDATA[$path]]></code>
306303
</MixedAssignment>
307304
<MixedMethodCall>
308-
<code>getFilename</code>
305+
<code><![CDATA[getFilename]]></code>
309306
</MixedMethodCall>
310307
<PossiblyInvalidMethodCall>
311-
<code>getPathName</code>
312-
<code>isDir</code>
308+
<code><![CDATA[getPathName]]></code>
309+
<code><![CDATA[isDir]]></code>
313310
</PossiblyInvalidMethodCall>
314311
</file>
315312
<file src="src/Services/MaxMindWebService.php">
@@ -324,34 +321,34 @@
324321
<code><![CDATA[is_null($this->errors)]]></code>
325322
</DocblockTypeContradiction>
326323
<InvalidScalarArgument>
327-
<code>$response</code>
328-
<code>$response</code>
324+
<code><![CDATA[$response]]></code>
325+
<code><![CDATA[$response]]></code>
329326
</InvalidScalarArgument>
330327
<MixedArgument>
331-
<code>$header_size</code>
332-
<code>$header_size</code>
328+
<code><![CDATA[$header_size]]></code>
329+
<code><![CDATA[$header_size]]></code>
333330
<code><![CDATA[Arr::get($this->config, 'headers', [])]]></code>
334331
<code><![CDATA[Arr::get($this->config, 'query', [])]]></code>
335332
<code><![CDATA[Arr::get($this->config, 'query', [])]]></code>
336333
</MixedArgument>
337334
<MixedAssignment>
338-
<code>$header_size</code>
335+
<code><![CDATA[$header_size]]></code>
339336
<code><![CDATA[$this->http_code]]></code>
340337
</MixedAssignment>
341338
<MixedOperand>
342339
<code><![CDATA[Arr::get($this->config, 'base_uri')]]></code>
343340
</MixedOperand>
344341
<PossiblyNullPropertyAssignmentValue>
345-
<code>null</code>
346-
<code>null</code>
342+
<code><![CDATA[null]]></code>
343+
<code><![CDATA[null]]></code>
347344
</PossiblyNullPropertyAssignmentValue>
348345
</file>
349346
<file src="src/helpers.php">
350347
<MixedInferredReturnType>
351-
<code>\InteractionDesignFoundation\GeoIP\GeoIP|\InteractionDesignFoundation\GeoIP\Location</code>
348+
<code><![CDATA[\InteractionDesignFoundation\GeoIP\GeoIP|\InteractionDesignFoundation\GeoIP\Location]]></code>
352349
</MixedInferredReturnType>
353350
<MixedMethodCall>
354-
<code>getLocation</code>
351+
<code><![CDATA[getLocation]]></code>
355352
</MixedMethodCall>
356353
<MixedReturnStatement>
357354
<code><![CDATA[app('geoip')]]></code>

0 commit comments

Comments
 (0)