Skip to content

Commit 45c19bd

Browse files
committed
Change imap_mail_compose() $body param to $bodies
This parameter actually expects an array of bodies, so we should name it accordingly. Closes GH-6313.
1 parent 378bb63 commit 45c19bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/imap/php_imap.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function imap_mail_copy($imap, string $message_nums, string $mailbox, int $flags
112112
/** @param resource $imap */
113113
function imap_mail_move($imap, string $message_nums, string $mailbox, int $flags = 0): bool {}
114114

115-
function imap_mail_compose(array $envelope, array $body): string|false {}
115+
function imap_mail_compose(array $envelope, array $bodies): string|false {}
116116

117117
/** @param resource $imap */
118118
function imap_createmailbox($imap, string $mailbox): bool {}

ext/imap/php_imap_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 621ebf610e043ce30c981f4c78ab79358c2aaeb9 */
2+
* Stub hash: c230b35425ab6b707f22158f2e6176c81d4137e9 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_imap_open, 0, 0, 3)
55
ZEND_ARG_TYPE_INFO(0, mailbox, IS_STRING, 0)
@@ -137,7 +137,7 @@ ZEND_END_ARG_INFO()
137137

138138
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_imap_mail_compose, 0, 2, MAY_BE_STRING|MAY_BE_FALSE)
139139
ZEND_ARG_TYPE_INFO(0, envelope, IS_ARRAY, 0)
140-
ZEND_ARG_TYPE_INFO(0, body, IS_ARRAY, 0)
140+
ZEND_ARG_TYPE_INFO(0, bodies, IS_ARRAY, 0)
141141
ZEND_END_ARG_INFO()
142142

143143
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imap_createmailbox, 0, 2, _IS_BOOL, 0)

0 commit comments

Comments
 (0)