Happy to submit a PR for this, but I want to make sure it will be accepted first and that the project is still maintained. Also it appears that https://github.com/Webklex/php-imap/pull/518 will fix PHP 8.4 nullable parameter depreciation. I would like that as well.