1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Merge pull request #8537 from ppdeblieck/stubfix

Fixed function signatures of imap_delete and imap_undelete
This commit is contained in:
orklah 2022-10-06 19:19:03 +02:00 committed by GitHub
commit b6ddcdf3e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 10 deletions

View File

@ -6017,7 +6017,7 @@ return [
'imap_close' => ['bool', 'imap'=>'IMAP\Connection', 'flags='=>'int'], 'imap_close' => ['bool', 'imap'=>'IMAP\Connection', 'flags='=>'int'],
'imap_create' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'], 'imap_create' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'],
'imap_createmailbox' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'], 'imap_createmailbox' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'],
'imap_delete' => ['bool', 'imap'=>'IMAP\Connection', 'message_num'=>'int', 'flags='=>'int'], 'imap_delete' => ['bool', 'imap'=>'IMAP\Connection', 'message_nums'=>'string', 'flags='=>'int'],
'imap_deletemailbox' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'], 'imap_deletemailbox' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'],
'imap_errors' => ['array|false'], 'imap_errors' => ['array|false'],
'imap_expunge' => ['bool', 'imap'=>'IMAP\Connection'], 'imap_expunge' => ['bool', 'imap'=>'IMAP\Connection'],
@ -6074,7 +6074,7 @@ return [
'imap_thread' => ['array|false', 'imap'=>'IMAP\Connection', 'flags='=>'int'], 'imap_thread' => ['array|false', 'imap'=>'IMAP\Connection', 'flags='=>'int'],
'imap_timeout' => ['int|bool', 'timeout_type'=>'int', 'timeout='=>'int'], 'imap_timeout' => ['int|bool', 'timeout_type'=>'int', 'timeout='=>'int'],
'imap_uid' => ['int|false', 'imap'=>'IMAP\Connection', 'message_num'=>'int'], 'imap_uid' => ['int|false', 'imap'=>'IMAP\Connection', 'message_num'=>'int'],
'imap_undelete' => ['bool', 'imap'=>'IMAP\Connection', 'message_num'=>'int', 'flags='=>'int'], 'imap_undelete' => ['bool', 'imap'=>'IMAP\Connection', 'message_nums'=>'string', 'flags='=>'int'],
'imap_unsubscribe' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'], 'imap_unsubscribe' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'],
'imap_utf7_decode' => ['string|false', 'string'=>'string'], 'imap_utf7_decode' => ['string|false', 'string'=>'string'],
'imap_utf7_encode' => ['string', 'string'=>'string'], 'imap_utf7_encode' => ['string', 'string'=>'string'],

View File

@ -270,8 +270,8 @@ return [
'new' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'], 'new' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'],
], ],
'imap_delete' => [ 'imap_delete' => [
'old' => ['bool', 'imap'=>'resource', 'message_num'=>'int', 'flags='=>'int'], 'old' => ['bool', 'imap'=>'resource', 'message_nums'=>'string', 'flags='=>'int'],
'new' => ['bool', 'imap'=>'IMAP\Connection', 'message_num'=>'int', 'flags='=>'int'], 'new' => ['bool', 'imap'=>'IMAP\Connection', 'message_nums'=>'string', 'flags='=>'int'],
], ],
'imap_deletemailbox' => [ 'imap_deletemailbox' => [
'old' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'], 'old' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'],
@ -450,8 +450,8 @@ return [
'new' => ['int|false', 'imap'=>'IMAP\Connection', 'message_num'=>'int'], 'new' => ['int|false', 'imap'=>'IMAP\Connection', 'message_num'=>'int'],
], ],
'imap_undelete' => [ 'imap_undelete' => [
'old' => ['bool', 'imap'=>'resource', 'message_num'=>'int', 'flags='=>'int'], 'old' => ['bool', 'imap'=>'resource', 'message_nums'=>'string', 'flags='=>'int'],
'new' => ['bool', 'imap'=>'IMAP\Connection', 'message_num'=>'int', 'flags='=>'int'], 'new' => ['bool', 'imap'=>'IMAP\Connection', 'message_nums'=>'string', 'flags='=>'int'],
], ],
'imap_unsubscribe' => [ 'imap_unsubscribe' => [
'old' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'], 'old' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'],

View File

@ -12228,7 +12228,7 @@ return [
'imap_close' => ['bool', 'imap'=>'resource', 'flags='=>'int'], 'imap_close' => ['bool', 'imap'=>'resource', 'flags='=>'int'],
'imap_create' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'], 'imap_create' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'],
'imap_createmailbox' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'], 'imap_createmailbox' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'],
'imap_delete' => ['bool', 'imap'=>'resource', 'message_num'=>'int', 'flags='=>'int'], 'imap_delete' => ['bool', 'imap'=>'resource', 'message_nums'=>'string', 'flags='=>'int'],
'imap_deletemailbox' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'], 'imap_deletemailbox' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'],
'imap_errors' => ['array|false'], 'imap_errors' => ['array|false'],
'imap_expunge' => ['bool', 'imap'=>'resource'], 'imap_expunge' => ['bool', 'imap'=>'resource'],
@ -12285,7 +12285,7 @@ return [
'imap_thread' => ['array|false', 'imap'=>'resource', 'flags='=>'int'], 'imap_thread' => ['array|false', 'imap'=>'resource', 'flags='=>'int'],
'imap_timeout' => ['int|bool', 'timeout_type'=>'int', 'timeout='=>'int'], 'imap_timeout' => ['int|bool', 'timeout_type'=>'int', 'timeout='=>'int'],
'imap_uid' => ['int|false', 'imap'=>'resource', 'message_num'=>'int'], 'imap_uid' => ['int|false', 'imap'=>'resource', 'message_num'=>'int'],
'imap_undelete' => ['bool', 'imap'=>'resource', 'message_num'=>'int', 'flags='=>'int'], 'imap_undelete' => ['bool', 'imap'=>'resource', 'message_nums'=>'string', 'flags='=>'int'],
'imap_unsubscribe' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'], 'imap_unsubscribe' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'],
'imap_utf7_decode' => ['string|false', 'string'=>'string'], 'imap_utf7_decode' => ['string|false', 'string'=>'string'],
'imap_utf7_encode' => ['string', 'string'=>'string'], 'imap_utf7_encode' => ['string', 'string'=>'string'],

View File

@ -119,11 +119,9 @@ class InternalCallMapHandlerTest extends TestCase
'imagettfbbox', 'imagettfbbox',
'imagettftext', 'imagettftext',
'imagexbm', 'imagexbm',
'imap_delete',
'imap_open', 'imap_open',
'imap_rfc822_write_address', 'imap_rfc822_write_address',
'imap_sort', 'imap_sort',
'imap_undelete',
'inflate_add', 'inflate_add',
'inflate_get_read_len', 'inflate_get_read_len',
'inflate_get_status', 'inflate_get_status',