Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imap_delete / imap_undelete: correction #799

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

hbrecht
Copy link
Contributor

@hbrecht hbrecht commented Nov 23, 2021

imap_delete and imap_undelete both have parameter $message_num of type string. All other imap_* - functions have $message_num as int and $message_nums as string.
For imap_delete and imap_undelete, it really should be string $message_nums. I also opened a bug at php for this. php doc has correct type, but comment is wrong and parameter names should be changed to be consistent for all imap_*-functions.
https://bugs.php.net/bug.php?id=81649

imap_delete and imap_undelete both have parameter $message_num of type string. All other imap_* - functions have $message_num as int and $message_nums as string.
For imap_delete and imap_undelete, it really should be string $message_nums. I also opened a bug at php for this. php doc has correct type, but comment is wrong and parameter names should be changed to be consistent for all imap_*-functions.
https://bugs.php.net/bug.php?id=81649
@ondrejmirtes ondrejmirtes merged commit 7f337a4 into phpstan:master Nov 24, 2021
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants