diff options
Diffstat (limited to 'ext/imap/php_imap.stub.php')
| -rw-r--r-- | ext/imap/php_imap.stub.php | 16 | 
1 files changed, 5 insertions, 11 deletions
| diff --git a/ext/imap/php_imap.stub.php b/ext/imap/php_imap.stub.php index 9d2e1082c1..0a7adc2736 100644 --- a/ext/imap/php_imap.stub.php +++ b/ext/imap/php_imap.stub.php @@ -5,7 +5,7 @@  /**   * @return resource|false   */ -function imap_open(string $mailbox, string $user, string $password, int $options = 0, int $n_retries = 0, array $params = UNKNOWN) {} +function imap_open(string $mailbox, string $user, string $password, int $options = 0, int $n_retries = 0, array $params = []) {}  /**   * @param resource $stream_id @@ -27,13 +27,7 @@ function imap_num_recent($stream_id): int|false {}  function imap_headers($stream_id): array|false {}  /** @param resource $stream_id */ -function imap_headerinfo($stream_id, int $msg_no, int $from_length = 0, int $subject_length = 0, string $default_host = UNKNOWN): stdClass|false {} - -/** - * @param resource $stream_id - * @alias imap_headerinfo - */ -function imap_header($stream_id, int $msg_no, int $from_length = 0, int $subject_length = 0, string $default_host = UNKNOWN): stdClass|false {} +function imap_headerinfo($stream_id, int $msg_no, int $from_length = 0, int $subject_length = 0): stdClass|false {}  function imap_rfc822_parse_headers(string $headers, string $default_host = "UNKNOWN"): stdClass {} @@ -148,7 +142,7 @@ function imap_subscribe($stream_id, string $mailbox): bool {}  function imap_unsubscribe($stream_id, string $mailbox): bool {}  /** @param resource $stream_id */ -function imap_append($stream_id, string $folder, string $message, string $options = UNKNOWN, string $internal_date = UNKNOWN): bool {} +function imap_append($stream_id, string $folder, string $message, ?string $options = null, ?string $internal_date = null): bool {}  /** @param resource $stream_id */  function imap_ping($stream_id): bool {} @@ -180,7 +174,7 @@ function imap_setflag_full($stream_id, string $sequence, string $flag, int $opti  function imap_clearflag_full($stream_id, string $sequence, string $flag, int $options = 0): bool {}  /** @param resource $stream_id */ -function imap_sort($stream_id, int $criteria, int $reverse, int $options = 0, string $search_criteria = UNKNOWN, string $charset = UNKNOWN): array|false {} +function imap_sort($stream_id, int $criteria, int $reverse, int $options = 0, ?string $search_criteria = null, ?string $charset = null): array|false {}  /** @param resource $stream_id */  function imap_uid($stream_id, int $msg_no): int|false {} @@ -258,4 +252,4 @@ function imap_setacl($stream_id, string $mailbox, string $id, string $rights): b  function imap_getacl($stream_id, string $mailbox): array|false {}  #endif -function imap_mail(string $to, string $subject, string $message, string $additional_headers = UNKNOWN, string $cc = UNKNOWN, string $bcc = UNKNOWN, string $rpath = UNKNOWN): bool {} +function imap_mail(string $to, string $subject, string $message, ?string $additional_headers = null, ?string $cc = null, ?string $bcc = null, ?string $rpath = null): bool {} | 
