Skip to content

Commit 2d78814

Browse files
committed
Update psalm baseline
Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent 79f555a commit 2d78814

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

psalm-baseline.xml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,9 @@
244244
</UnsafeInstantiation>
245245
</file>
246246
<file src="src/Components/Expression.php">
247-
<DocblockTypeContradiction occurrences="1">
247+
<DocblockTypeContradiction occurrences="2">
248248
<code>$prev[0] === null</code>
249+
<code>empty($options['field'])</code>
249250
</DocblockTypeContradiction>
250251
<InvalidArgument occurrences="1">
251252
<code>$options['breakOnParentheses']</code>
@@ -293,7 +294,8 @@
293294
<code>(string) $ret-&gt;expr</code>
294295
<code>(string) $ret-&gt;expr</code>
295296
</RedundantCastGivenDocblockType>
296-
<RedundantConditionGivenDocblockType occurrences="8">
297+
<RedundantConditionGivenDocblockType occurrences="9">
298+
<code>! $isExpr</code>
297299
<code>$component-&gt;expr !== '' &amp;&amp; $component-&gt;expr !== null</code>
298300
<code>$component-&gt;expr !== null</code>
299301
<code>$isExpr</code>
@@ -603,8 +605,9 @@
603605
<PossiblyNullPropertyFetch occurrences="1">
604606
<code>$ret-&gt;options[$lastOptionId]['expr']-&gt;expr</code>
605607
</PossiblyNullPropertyFetch>
606-
<RedundantCondition occurrences="1">
608+
<RedundantCondition occurrences="2">
607609
<code>! empty($option['equals']) &amp;&amp; $option['equals']</code>
610+
<code>$option['equals']</code>
608611
</RedundantCondition>
609612
<RedundantConditionGivenDocblockType occurrences="1">
610613
<code>$options instanceof self</code>
@@ -884,7 +887,11 @@
884887
</PossiblyNullPropertyAssignmentValue>
885888
</file>
886889
<file src="src/Lexer.php">
887-
<LoopInvalidation occurrences="3"/>
890+
<LoopInvalidation occurrences="3">
891+
<code>$this-&gt;last</code>
892+
<code>$this-&gt;last</code>
893+
<code>$this-&gt;last</code>
894+
</LoopInvalidation>
888895
<MissingReturnType occurrences="3">
889896
<code>error</code>
890897
<code>lex</code>
@@ -945,7 +952,6 @@
945952
<code>$lastToken-&gt;value</code>
946953
<code>$this-&gt;str[$this-&gt;last++]</code>
947954
<code>$this-&gt;str[$this-&gt;last]</code>
948-
<code>$this-&gt;str[$this-&gt;last]</code>
949955
<code>$token-&gt;flags</code>
950956
<code>$token-&gt;value</code>
951957
</MixedOperand>
@@ -999,7 +1005,7 @@
9991005
<code>$token</code>
10001006
<code>$token</code>
10011007
</PossiblyNullArgument>
1002-
<PossiblyNullOperand occurrences="23">
1008+
<PossiblyNullOperand occurrences="24">
10031009
<code>$this-&gt;delimiter</code>
10041010
<code>$this-&gt;str[$this-&gt;last++]</code>
10051011
<code>$this-&gt;str[$this-&gt;last]</code>
@@ -1023,10 +1029,14 @@
10231029
<code>$this-&gt;str[++$this-&gt;last]</code>
10241030
<code>$this-&gt;str[++$this-&gt;last]</code>
10251031
<code>$this-&gt;str[++$this-&gt;last]</code>
1032+
<code>$this-&gt;str[++$this-&gt;last]</code>
10261033
</PossiblyNullOperand>
10271034
<PossiblyNullPropertyAssignmentValue occurrences="1">
10281035
<code>null</code>
10291036
</PossiblyNullPropertyAssignmentValue>
1037+
<RedundantCondition occurrences="1">
1038+
<code>USE_UTF_STRINGS</code>
1039+
</RedundantCondition>
10301040
<UnnecessaryVarAnnotation occurrences="3">
10311041
<code>int</code>
10321042
<code>int</code>
@@ -1061,6 +1071,9 @@
10611071
</UnnecessaryVarAnnotation>
10621072
</file>
10631073
<file src="src/Statement.php">
1074+
<DocblockTypeContradiction occurrences="1">
1075+
<code>count($clauses) === 0</code>
1076+
</DocblockTypeContradiction>
10641077
<MissingReturnType occurrences="3">
10651078
<code>after</code>
10661079
<code>before</code>
@@ -1160,7 +1173,8 @@
11601173
<code>CallStatement</code>
11611174
<code>CallStatement</code>
11621175
</PropertyNotSetInConstructor>
1163-
<RedundantConditionGivenDocblockType occurrences="1">
1176+
<RedundantConditionGivenDocblockType occurrences="2">
1177+
<code>$this-&gt;call-&gt;parameters</code>
11641178
<code>$this-&gt;call-&gt;parameters</code>
11651179
</RedundantConditionGivenDocblockType>
11661180
</file>
@@ -2068,7 +2082,8 @@
20682082
</MixedAssignment>
20692083
</file>
20702084
<file src="src/Utils/Table.php">
2071-
<DocblockTypeContradiction occurrences="2">
2085+
<DocblockTypeContradiction occurrences="3">
2086+
<code>! $field-&gt;options</code>
20722087
<code>$field-&gt;options</code>
20732088
<code>empty($field-&gt;type)</code>
20742089
</DocblockTypeContradiction>

0 commit comments

Comments
 (0)