Skip to content

Commit

Permalink
Update psalm baseline to ignore false positive
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Jan 15, 2024
1 parent bb2cb80 commit 21139a1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions build/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,6 @@
</InvalidPropertyAssignmentValue>
<InvalidScalarArgument occurrences="1">
<code>0</code>
<code>0</code>
</InvalidScalarArgument>
</file>
<file src="apps/updatenotification/lib/Notification/Notifier.php">
Expand Down Expand Up @@ -1517,7 +1516,6 @@
<file src="core/routes.php">
<InvalidScope occurrences="2">
<code>$this</code>
<code>$this</code>
</InvalidScope>
</file>
<file src="core/templates/layout.public.php">
Expand Down Expand Up @@ -2173,7 +2171,6 @@
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>string</code>
<code>string</code>
</InvalidReturnType>
</file>
<file src="lib/private/Files/Node/Folder.php">
Expand Down Expand Up @@ -2479,7 +2476,6 @@
<code>$lastChunkPos</code>
<code>$newUnencryptedSize</code>
<code>$size</code>
<code>$size</code>
<code>$sourceStorage-&gt;filemtime($sourceInternalPath)</code>
</InvalidScalarArgument>
</file>
Expand Down Expand Up @@ -2537,7 +2533,6 @@
<code>null</code>
<code>null</code>
<code>null</code>
<code>null</code>
</NullableReturnStatement>
<RedundantCondition occurrences="1">
<code>is_resource($source)</code>
Expand Down Expand Up @@ -2749,10 +2744,17 @@
</InvalidReturnStatement>
</file>
<file src="lib/private/Preview/Generator.php">
<InvalidArgument occurrences="2">
<InvalidArgument occurrences="3">
<code>$maxPreviewImage</code>
<code>$semId</code>
<code>IPreview::EVENT</code>
</InvalidArgument>
<InvalidReturnStatement occurrences="1">
<code>$sem</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>false|\SysvSemaphore</code>
</InvalidReturnType>
<MismatchingDocblockParamType occurrences="1">
<code>ISimpleFile</code>
</MismatchingDocblockParamType>
Expand Down

0 comments on commit 21139a1

Please sign in to comment.