You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/PhpImap/Imap.php
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ final class Imap
69
69
];
70
70
71
71
/**
72
-
* @param resource|false $imap_stream
72
+
* @param false|resource $imap_stream
73
73
*
74
74
* @return true
75
75
*
@@ -143,7 +143,7 @@ public static function check($imap_stream): object
143
143
thrownewUnexpectedValueException('Could not check imap mailbox!', 0, self::HandleErrors(\imap_errors(), 'imap_check'));
144
144
}
145
145
146
-
/** @var object */
146
+
/* @var object */
147
147
return$result;
148
148
}
149
149
@@ -233,7 +233,7 @@ public static function createmailbox($imap_stream, string $mailbox): bool
233
233
234
234
/**
235
235
* @param false|resource $imap_stream
236
-
* @param string|int $msg_number
236
+
* @param int|string $msg_number
237
237
*
238
238
* @return true
239
239
*/
@@ -339,13 +339,13 @@ public static function fetch_overview(
339
339
thrownewUnexpectedValueException('Could not fetch overview for message from mailbox!', 0, self::HandleErrors(\imap_errors(), 'imap_fetch_overview'));
340
340
}
341
341
342
-
/** @psalm-var list<object> */
342
+
/* @psalm-var list<object> */
343
343
return$result;
344
344
}
345
345
346
346
/**
347
347
* @param false|resource $imap_stream
348
-
* @param string|int $section
348
+
* @param int|string $section
349
349
*/
350
350
publicstaticfunctionfetchbody(
351
351
$imap_stream,
@@ -418,7 +418,7 @@ public static function fetchstructure(
418
418
thrownewUnexpectedValueException('Could not fetch message structure from mailbox!', 0, self::HandleErrors(\imap_errors(), 'imap_fetchstructure'));
419
419
}
420
420
421
-
/** @psalm-var PARTSTRUCTURE */
421
+
/* @psalm-var PARTSTRUCTURE */
422
422
return$result;
423
423
}
424
424
@@ -446,7 +446,7 @@ public static function get_quotaroot(
446
446
}
447
447
448
448
/**
449
-
* @param resource|false $imap_stream
449
+
* @param false|resource $imap_stream
450
450
*
451
451
* @return object[]
452
452
*
@@ -479,12 +479,12 @@ public static function getmailboxes(
479
479
thrownewUnexpectedValueException('Call to imap_getmailboxes() with supplied arguments returned false, not array!', 0, self::HandleErrors(\imap_errors(), 'imap_getmailboxes'));
480
480
}
481
481
482
-
/** @psalm-var list<object> */
482
+
/* @psalm-var list<object> */
483
483
return$result;
484
484
}
485
485
486
486
/**
487
-
* @param resource|false $imap_stream
487
+
* @param false|resource $imap_stream
488
488
*
489
489
* @return object[]
490
490
*
@@ -507,7 +507,7 @@ public static function getsubscribed(
507
507
thrownewUnexpectedValueException('Call to imap_getsubscribed() with supplied arguments returned false, not array!', 0, self::HandleErrors(\imap_errors(), 'imap_getsubscribed'));
508
508
}
509
509
510
-
/** @psalm-var list<object> */
510
+
/* @psalm-var list<object> */
511
511
return$result;
512
512
}
513
513
@@ -716,7 +716,7 @@ public static function open(
716
716
}
717
717
718
718
/**
719
-
* @param resource|false $imap_stream
719
+
* @param false|resource $imap_stream
720
720
*
721
721
* @psalm-pure
722
722
*/
@@ -779,7 +779,7 @@ public static function reopen(
779
779
780
780
/**
781
781
* @param false|resource $imap_stream
782
-
* @param string|false|resource $file
782
+
* @param false|resource|string $file
783
783
*
784
784
* @return true
785
785
*/
@@ -852,7 +852,7 @@ public static function search(
852
852
thrownewUnexpectedValueException('Could not search mailbox!', 0, self::HandleErrors($errors, 'imap_search'));
853
853
}
854
854
855
-
/** @psalm-var list<int> */
855
+
/* @psalm-var list<int> */
856
856
return$result;
857
857
}
858
858
@@ -954,7 +954,7 @@ public static function sort(
954
954
thrownewUnexpectedValueException('Could not sort messages!', 0, self::HandleErrors(\imap_errors(), 'imap_sort'));
955
955
}
956
956
957
-
/** @psalm-var list<int> */
957
+
/* @psalm-var list<int> */
958
958
return$result;
959
959
}
960
960
@@ -1001,7 +1001,7 @@ public static function subscribe($imap_stream, string $mailbox): void
0 commit comments