php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

createFolder(): Return value must be of type bool

Open mihakot opened this issue 3 years ago • 3 comments

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 image

Desktop / Server (please complete the following information):

  • OS: Windows
  • PHP: 8.1
  • Version 4.0
  • Provider YandexMail

mihakot avatar Aug 21 '22 09:08 mihakot

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,

Webklex avatar Aug 21 '22 09:08 Webklex

Thanks) When will published in packagist?

mihakot avatar Aug 21 '22 17:08 mihakot

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,

Webklex avatar Aug 23 '22 17:08 Webklex

Can this be closed? It is mentioned in 4.0.1 as fixed.

gruberroland avatar Oct 19 '22 05:10 gruberroland