From c38cd9a0f66eb21a1296f5a5512a9032a3cfeb7e Mon Sep 17 00:00:00 2001 From: Klaus Silveira Date: Fri, 11 Aug 2017 10:24:39 -0400 Subject: [PATCH] Imap::capability should always return an array If there was a communication failure getting the list of capabilities, the return type should be an `array`, not `false`. --- src/Protocol/Imap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/Imap.php b/src/Protocol/Imap.php index a92de0b4..cd638736 100644 --- a/src/Protocol/Imap.php +++ b/src/Protocol/Imap.php @@ -445,7 +445,7 @@ public function capability() $response = $this->requestAndResponse('CAPABILITY'); if (! $response) { - return $response; + return []; } $capabilities = [];