Skip to content

Invalid return type in ImapProtocol::search() #266

@ken717w

Description

@ken717w

Describe the bug
In the class Webklex\PHPIMAP\Connection\Protocols\ImapProtocol, the return type of search() has been specified to array. However, $response is being returned if it has a falsy value, while the type of $response could be either array, bool or null according to requestAndResponse().

Screenshots
image

Desktop / Server (please complete the following information):

  • PHP: 7.4.30
  • webklex/laravel-imap: 4.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions