summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-04-04 13:03:16 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-04-04 13:03:16 +0200
commita43bc33fb2575cda582167c0d6571e501a2e6496 (patch)
tree536e989e4975d9729716b072b13c89e500359c89 /ext/imap/php_imap.stub.php
parentfc5a88f6140ae6fa978e6ea3ae0fc723971cd4f0 (diff)
downloadphp-git-a43bc33fb2575cda582167c0d6571e501a2e6496.tar.gz
Annotate function aliases in stubs
Diffstat (limited to 'ext/imap/php_imap.stub.php')
-rw-r--r--ext/imap/php_imap.stub.php36
1 files changed, 29 insertions, 7 deletions
diff --git a/ext/imap/php_imap.stub.php b/ext/imap/php_imap.stub.php
index c80799225c..1366a0fc06 100644
--- a/ext/imap/php_imap.stub.php
+++ b/ext/imap/php_imap.stub.php
@@ -27,6 +27,7 @@ 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 {}
+/** @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_rfc822_parse_headers(string $headers, string $default_host = 'UNKNOWN'): \stdClass {}
@@ -38,7 +39,10 @@ function imap_rfc822_parse_adrlist(string $address_string, string $default_host)
/** @param resource $stream_id */
function imap_body($stream_id, int $msg_no, int $options = 0): string|false {}
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_body
+ */
function imap_fetchtext($stream_id, int $msg_no, int $options = 0): string|false {}
/**
@@ -91,10 +95,16 @@ function imap_check($stream_id): stdClass|false {}
/** @param resource $stream_id */
function imap_listscan($stream_id, string $ref, string $pattern, string $content): array|false {}
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_listscan
+ */
function imap_scan($stream_id, string $ref, string $pattern, string $content): array|false {}
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_listscan
+ */
function imap_scanmailbox($stream_id, string $ref, string $pattern, string $content): array|false {}
/** @param resource $stream_id */
@@ -108,13 +118,19 @@ function imap_mail_compose(array $envelope, array $body): string|false {}
/** @param resource $stream_id */
function imap_createmailbox($stream_id, string $mailbox): bool {}
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_createmailbox
+ */
function imap_create($stream_id, string $mailbox): bool {}
/** @param resource $stream_id */
function imap_renamemailbox($stream_id, string $old_name, string $new_name): bool {}
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_renamemailbox
+ */
function imap_rename($stream_id, string $old_name, string $new_name): bool {}
/** @param resource $stream_id */
@@ -170,13 +186,19 @@ function imap_msgno($stream_id, int $unique_msg_id): int|false {}
/** @param resource $stream_id */
function imap_list($stream_id, string $ref, string $pattern): array|false {}
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_list
+ */
function imap_listmailbox($stream_id, string $ref, string $pattern): array|false {}
/** @param resource $stream_id */
function imap_lsub($stream_id, string $ref, string $pattern): array|false {}
-/** @param resource $stream_id */
+/**
+ * @param resource $stream_id
+ * @alias imap_lsub
+ */
function imap_listsubscribed($stream_id, string $ref, string $pattern): array|false {}
/** @param resource $stream_id */