Skip to content

Commit 8bce5df

Browse files
author
Sebastian Krätzig
committed
Suppress false-positives InvalidArgument
1 parent 9f80696 commit 8bce5df

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/PhpImap/Imap.php

+3
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,9 @@ public static function setflag_full(
897897
* @param false|resource $imap_stream
898898
*
899899
* @psalm-param value-of<self::SORT_CRITERIA> $criteria
900+
* @psalm-suppress InvalidArgument
901+
*
902+
* @todo InvalidArgument, although it's correct: Argument 3 of imap_sort expects int, bool provided https://www.php.net/manual/de/function.imap-sort.php
900903
*
901904
* @return int[]
902905
*

src/PhpImap/Mailbox.php

+1
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,7 @@ protected function initImapStream()
17001700
* @param string|0 $partNum
17011701
*
17021702
* @psalm-param PARTSTRUCTURE $partStructure
1703+
* @psalm-suppress InvalidArgument
17031704
*
17041705
* @todo refactor type checking pending resolution of https://github.com/vimeo/psalm/issues/2619
17051706
*/

0 commit comments

Comments
 (0)