Closed marios88 closed 2 years ago
Hi @marios88 I've created PR https://github.com/barbushin/php-imap/pull/659 about same issue two days ago but it looks like the main contributors have abandoned the project ;(
@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
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
As @JellyBellyDev I just contributed a PR and have no power over this repo, but this is an issue i will face eventually when I have to upgrade to PHP8.x
Hi @marios88 I've created PR #659 about same issue two days ago but it looks like the main contributors have abandoned the project ;(
Really sorry, i didn't notice, am closing this since your PR https://github.com/barbushin/php-imap/pull/659 fixes the same problem
Getting the following error on PHP versions lower than 8.0
Uncaught TypeError: imap_sort() expects parameter 3 to be int, bool given
Since PHP 8.0.0 reverse is now bool instead of int https://www.php.net/manual/en/function.imap-sort.php