Skip to content

Commit

Permalink
Baselines psalm issues with SplPriorityQueue
Browse files Browse the repository at this point in the history
Signed-off-by: George Steel <[email protected]>
  • Loading branch information
gsteel committed Aug 23, 2022
1 parent 979df66 commit ff46973
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@
<InvalidReturnStatement occurrences="1">
<code>$node ? $node['data'] : false</code>
</InvalidReturnStatement>
<MissingClosureReturnType occurrences="1"/>
<MissingClosureReturnType occurrences="1">
<code>static fn($item) =&gt; $flag === self::EXTR_PRIORITY ? $item['priority'] : $item['data']</code>
</MissingClosureReturnType>
<MixedInferredReturnType occurrences="1">
<code>next</code>
</MixedInferredReturnType>
Expand All @@ -205,12 +207,22 @@
</RedundantCastGivenDocblockType>
</file>
<file src="src/SplPriorityQueue.php">
<DocblockTypeContradiction occurrences="1">
<code>is_array($priority)</code>
</DocblockTypeContradiction>
<ImplementedReturnTypeMismatch occurrences="1">
<code>void</code>
</ImplementedReturnTypeMismatch>
<InvalidArgument occurrences="2">
<code>$priority</code>
<code>$priority</code>
</InvalidArgument>
<MethodSignatureMismatch occurrences="1">
<code>public function insert($datum, $priority)</code>
</MethodSignatureMismatch>
<MixedArgument occurrences="1">
<code>$item['data']</code>
</MixedArgument>
</file>
<file src="src/StringUtils.php">
<DocblockTypeContradiction occurrences="1">
Expand Down

0 comments on commit ff46973

Please sign in to comment.