Closed alebedev80 closed 2 years ago
@barbushin @rmontagud @Theaxiom @hexathos @JellyBellyDev hey somebody please review and merge PR!
@barbushin @rmontagud @Theaxiom @hexathos @JellyBellyDev @alebedev80
The following commit from 4.3.0 is causing this "imap_sort() expects parameter 3 to be int, bool given" error:
https://github.com/barbushin/php-imap/commit/2cd5d0bcf4500f4cc70559a103d65a72b512700b
@mattyhansen seems this repo abandoned i plan to rid off it from my project
@alebedev80 sorry but I am not one of the maintainers, a long time ago I contributed a PR but I have no power over this repo. good luck
@Sebi94nbg i've fixed a code, please review it again.
Environment (please complete the following information):
Describe the bug
The $reverse variable type conversion from boolean to integer has been removed in this commit, but imap_open() before PHP version 8 only accepts integer type. Thus, in PHP 7 this code ends with the error:
Also i found strange assignment in \PhpImap\Imap::sort():
I've added PHP version detection and removed legacy code.
Please review it.
Thank you!