diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 19:18:03 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 23:10:13 +0200 |
commit | 8d4774a2df4e16679c9176e2b6edecc94283af6d (patch) | |
tree | 055eb6ee3fa5c45d0240a4f8673b82db5f5fd628 /ext/imap/php_imap.stub.php | |
parent | 1c596ff1463a187d0fe135de251fb139b63858bd (diff) | |
download | php-git-8d4774a2df4e16679c9176e2b6edecc94283af6d.tar.gz |
Change parameters types from int to bool
These are typical boolean parameters, so we shouldn't advertize them as
integers. For the `$reverse` parameter that even fixes expectations,
because the `reverse` member is a bitfield of 1 bit, so assigning any
even integer would not set it.
Closes GH-6328.
Diffstat (limited to 'ext/imap/php_imap.stub.php')
-rw-r--r-- | ext/imap/php_imap.stub.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/imap/php_imap.stub.php b/ext/imap/php_imap.stub.php index 62ac96d59f..7b3d01afa0 100644 --- a/ext/imap/php_imap.stub.php +++ b/ext/imap/php_imap.stub.php @@ -173,7 +173,7 @@ function imap_setflag_full($imap, string $sequence, string $flag, int $options = function imap_clearflag_full($imap, string $sequence, string $flag, int $options = 0): bool {} /** @param resource $imap */ -function imap_sort($imap, int $criteria, int $reverse, int $flags = 0, ?string $search_criteria = null, ?string $charset = null): array|false {} +function imap_sort($imap, int $criteria, bool $reverse, int $flags = 0, ?string $search_criteria = null, ?string $charset = null): array|false {} /** @param resource $imap */ function imap_uid($imap, int $message_num): int|false {} |