Skip to content

Commit a6d9179

Browse files
committed
Bump baseline
Signed-off-by: Ion Bazan <ion.bazan@gmail.com>
1 parent c44aab0 commit a6d9179

File tree

1 file changed

+12
-28
lines changed

1 file changed

+12
-28
lines changed

psalm-baseline.xml

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@
159159
</PropertyNotSetInConstructor>
160160
</file>
161161
<file src="src/Check/CpuPerformance.php">
162-
<InvalidNullableReturnType occurrences="1">
163-
<code>string</code>
164-
</InvalidNullableReturnType>
165162
<InvalidScalarArgument occurrences="15">
166163
<code>$a</code>
167164
<code>$a</code>
@@ -183,14 +180,11 @@
183180
<code>null</code>
184181
<code>null</code>
185182
</NullArgument>
186-
<NullableReturnStatement occurrences="1">
187-
<code>bcdiv(bcpow(bcadd($a, $b), 2), bcmul(4, $t), $precision)</code>
188-
</NullableReturnStatement>
189183
<PossiblyNullArgument occurrences="4">
190184
<code>$b</code>
191185
<code>$b</code>
192186
<code>$b</code>
193-
<code>$x</code>
187+
<code>bcsqrt(2)</code>
194188
</PossiblyNullArgument>
195189
<PropertyNotSetInConstructor occurrences="1">
196190
<code>CpuPerformance</code>
@@ -200,9 +194,6 @@
200194
</RedundantCastGivenDocblockType>
201195
</file>
202196
<file src="src/Check/DirReadable.php">
203-
<ArgumentTypeCoercion occurrences="1">
204-
<code>$this-&gt;dir</code>
205-
</ArgumentTypeCoercion>
206197
<InvalidPropertyAssignmentValue occurrences="1">
207198
<code>$path</code>
208199
</InvalidPropertyAssignmentValue>
@@ -223,14 +214,14 @@
223214
<code>current($nonDirs)</code>
224215
<code>current($unreadable)</code>
225216
</MixedOperand>
217+
<PossiblyInvalidArgument occurrences="1">
218+
<code>$this-&gt;dir</code>
219+
</PossiblyInvalidArgument>
226220
<PropertyNotSetInConstructor occurrences="1">
227221
<code>DirReadable</code>
228222
</PropertyNotSetInConstructor>
229223
</file>
230224
<file src="src/Check/DirWritable.php">
231-
<ArgumentTypeCoercion occurrences="1">
232-
<code>$this-&gt;dir</code>
233-
</ArgumentTypeCoercion>
234225
<InvalidPropertyAssignmentValue occurrences="1">
235226
<code>$path</code>
236227
</InvalidPropertyAssignmentValue>
@@ -249,6 +240,9 @@
249240
<code>$nonDirs[]</code>
250241
<code>$unwritable[]</code>
251242
</MixedAssignment>
243+
<PossiblyInvalidArgument occurrences="1">
244+
<code>$this-&gt;dir</code>
245+
</PossiblyInvalidArgument>
252246
<PropertyNotSetInConstructor occurrences="1">
253247
<code>DirWritable</code>
254248
</PropertyNotSetInConstructor>
@@ -264,13 +258,10 @@
264258
<InvalidScalarArgument occurrences="1">
265259
<code>$free</code>
266260
</InvalidScalarArgument>
267-
<MixedArgument occurrences="6">
261+
<MixedArgument occurrences="3">
268262
<code>$a</code>
269263
<code>$a</code>
270264
<code>$k</code>
271-
<code>$this-&gt;path</code>
272-
<code>$this-&gt;path</code>
273-
<code>$this-&gt;path</code>
274265
</MixedArgument>
275266
<MixedArgumentTypeCoercion occurrences="1"/>
276267
<MixedAssignment occurrences="3">
@@ -281,9 +272,8 @@
281272
<MixedInferredReturnType occurrences="1">
282273
<code>int</code>
283274
</MixedInferredReturnType>
284-
<MixedOperand occurrences="3">
275+
<MixedOperand occurrences="2">
285276
<code>$bytes</code>
286-
<code>$this-&gt;path</code>
287277
<code>$x[$i]</code>
288278
</MixedOperand>
289279
<MixedReturnStatement occurrences="1">
@@ -302,12 +292,6 @@
302292
<code>! is_float($free)</code>
303293
<code>$free === false || ! is_float($free)</code>
304294
</TypeDoesNotContainType>
305-
<UndefinedThisPropertyAssignment occurrences="1">
306-
<code>$this-&gt;path</code>
307-
</UndefinedThisPropertyAssignment>
308-
<UndefinedThisPropertyFetch occurrences="1">
309-
<code>$this-&gt;path</code>
310-
</UndefinedThisPropertyFetch>
311295
</file>
312296
<file src="src/Check/DiskUsage.php">
313297
<DocblockTypeContradiction occurrences="3">
@@ -341,9 +325,6 @@
341325
</UndefinedMethod>
342326
</file>
343327
<file src="src/Check/ExtensionLoaded.php">
344-
<ArgumentTypeCoercion occurrences="1">
345-
<code>$this-&gt;extensions</code>
346-
</ArgumentTypeCoercion>
347328
<InvalidPropertyAssignmentValue occurrences="1">
348329
<code>$extensionName</code>
349330
</InvalidPropertyAssignmentValue>
@@ -371,6 +352,9 @@
371352
<code>$ext</code>
372353
<code>$ext</code>
373354
</MixedOperand>
355+
<PossiblyInvalidArgument occurrences="1">
356+
<code>$this-&gt;extensions</code>
357+
</PossiblyInvalidArgument>
374358
<PropertyNotSetInConstructor occurrences="1">
375359
<code>ExtensionLoaded</code>
376360
</PropertyNotSetInConstructor>

0 commit comments

Comments
 (0)