php-imap
php-imap copied to clipboard
createFolder(): Return value must be of type bool
Describe the bug Webklex\PHPIMAP\Connection\Protocols\ImapProtocol::createFolder(): Return value must be of type bool, null returned
Used config default
Code to Reproduce The troubling code section which produces the reported bug.
$client = Client::account($account);
//Connect to the IMAP Server
$client->connect();
return $client->createFolder($folder);
Screenshots

Desktop / Server (please complete the following information):
- OS: Windows
- PHP: 8.1
- Version 4.0
- Provider YandexMail
Hi @mihakot ,
many thanks for your report.
I just pushed a patch to cast the return value of several ImapProtocol::class methods into a boolean value.
Best regards,
Thanks) When will published in packagist?
Hi @mihakot , this might take a little bit. If you don't mid, I would like to hear your thought regarding the release frequency: #265
Best regards,
Can this be closed? It is mentioned in 4.0.1 as fixed.