Skip to content

Commit 3b11696

Browse files
committed
Update Psalm baseline
1 parent 74e1b39 commit 3b11696

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

psalm-baseline.xml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.22.2@d768d914152dbbf3486c36398802f74e80cfde48">
2+
<files psalm-version="5.23.1@8471a896ccea3526b26d082f4461eeea467f10a4">
33
<file src="src/Cache.php">
44
<MixedInferredReturnType>
55
<code><![CDATA[bool]]></code>
@@ -26,15 +26,16 @@
2626
<NonInvariantDocblockPropertyType>
2727
<code><![CDATA[$description]]></code>
2828
</NonInvariantDocblockPropertyType>
29+
<PossiblyUndefinedMethod>
30+
<code><![CDATA[config]]></code>
31+
<code><![CDATA[getCache]]></code>
32+
</PossiblyUndefinedMethod>
2933
<PropertyNotSetInConstructor>
3034
<code><![CDATA[Clear]]></code>
3135
<code><![CDATA[Clear]]></code>
3236
<code><![CDATA[Clear]]></code>
3337
<code><![CDATA[Clear]]></code>
3438
</PropertyNotSetInConstructor>
35-
<UndefinedFunction>
36-
<code><![CDATA[config('cache.default')]]></code>
37-
</UndefinedFunction>
3839
</file>
3940
<file src="src/Console/Update.php">
4041
<DeprecatedMethod>
@@ -54,6 +55,9 @@
5455
<NonInvariantDocblockPropertyType>
5556
<code><![CDATA[$description]]></code>
5657
</NonInvariantDocblockPropertyType>
58+
<PossiblyUndefinedMethod>
59+
<code><![CDATA[getService]]></code>
60+
</PossiblyUndefinedMethod>
5761
<PropertyNotSetInConstructor>
5862
<code><![CDATA[Update]]></code>
5963
<code><![CDATA[Update]]></code>
@@ -68,14 +72,23 @@
6872
</InvalidParamDefault>
6973
</file>
7074
<file src="src/GeoIP.php">
75+
<DeprecatedConstant>
76+
<code><![CDATA[Logger::ERROR]]></code>
77+
</DeprecatedConstant>
7178
<DeprecatedMethod>
7279
<code><![CDATA[setPrefix]]></code>
7380
</DeprecatedMethod>
81+
<DeprecatedProperty>
82+
<code><![CDATA[$this->remote_ip]]></code>
83+
<code><![CDATA[$this->remote_ip]]></code>
84+
<code><![CDATA[$this->remote_ip]]></code>
85+
</DeprecatedProperty>
7486
<DocblockTypeContradiction>
7587
<code><![CDATA[$this->currencies === null]]></code>
7688
<code><![CDATA[$this->service === null]]></code>
7789
</DocblockTypeContradiction>
7890
<InvalidPropertyAssignmentValue>
91+
<code><![CDATA[$this->default_location]]></code>
7992
<code><![CDATA[new Cache(
8093
$cache,
8194
$this->config('cache_tags'),
@@ -97,21 +110,15 @@
97110
<code><![CDATA[$this->config('cache_tags')]]></code>
98111
<code><![CDATA[$this->config('default_location', [])]]></code>
99112
</MixedArgument>
100-
<MixedArgumentTypeCoercion>
101-
<code><![CDATA[$this->default_location]]></code>
102-
</MixedArgumentTypeCoercion>
103113
<MixedAssignment>
104114
<code><![CDATA[$class]]></code>
105115
<code><![CDATA[$config]]></code>
106-
<code><![CDATA[$log]]></code>
107116
</MixedAssignment>
108117
<MixedInferredReturnType>
109118
<code><![CDATA[string]]></code>
110119
</MixedInferredReturnType>
111120
<MixedMethodCall>
112-
<code><![CDATA[error]]></code>
113121
<code><![CDATA[new $class($config)]]></code>
114-
<code><![CDATA[pushHandler]]></code>
115122
</MixedMethodCall>
116123
<MixedOperand>
117124
<code><![CDATA[$this->config('service')]]></code>
@@ -136,19 +143,11 @@
136143
<PropertyTypeCoercion>
137144
<code><![CDATA[new $class($config)]]></code>
138145
</PropertyTypeCoercion>
139-
<RedundantCondition>
140-
<code><![CDATA['some']]></code>
141-
</RedundantCondition>
142146
<RiskyTruthyFalsyComparison>
143147
<code><![CDATA[! $location->currency]]></code>
144148
<code><![CDATA[$address = getenv($key)]]></code>
145149
<code><![CDATA[$ip]]></code>
146150
</RiskyTruthyFalsyComparison>
147-
<UndefinedClass>
148-
<code><![CDATA[Logger]]></code>
149-
<code><![CDATA[Logger]]></code>
150-
<code><![CDATA[StreamHandler]]></code>
151-
</UndefinedClass>
152151
</file>
153152
<file src="src/GeoIPServiceProvider.php">
154153
<MissingClosureParamType>
@@ -167,9 +166,6 @@
167166
<MixedPropertyFetch>
168167
<code><![CDATA[$app->config]]></code>
169168
</MixedPropertyFetch>
170-
<UndefinedFunction>
171-
<code><![CDATA[config_path('geoip.php')]]></code>
172-
</UndefinedFunction>
173169
</file>
174170
<file src="src/Location.php">
175171
<InvalidParamDefault>
@@ -359,8 +355,12 @@
359355
<code><![CDATA[getLocation]]></code>
360356
</MixedMethodCall>
361357
<MixedReturnStatement>
358+
<code><![CDATA[app('geoip')]]></code>
362359
<code><![CDATA[app('geoip')]]></code>
363360
<code><![CDATA[app('geoip')->getLocation($ip)]]></code>
364361
</MixedReturnStatement>
362+
<PossiblyUndefinedMethod>
363+
<code><![CDATA[getLocation]]></code>
364+
</PossiblyUndefinedMethod>
365365
</file>
366366
</files>

0 commit comments

Comments
 (0)