@@ -891,7 +891,7 @@ public function moveMessage(string $folder, $from, $to = null, $uid = IMAP::ST_U
891891 $ set = $ this ->buildSet ($ from , $ to );
892892 $ command = $ this ->buildUIDCommand ("MOVE " , $ uid );
893893
894- return $ this ->requestAndResponse ($ command , [$ set , $ this ->escapeString ($ folder )], true );
894+ return ( bool ) $ this ->requestAndResponse ($ command , [$ set , $ this ->escapeString ($ folder )], true );
895895 }
896896
897897 /**
@@ -943,7 +943,7 @@ public function ID($ids = null) {
943943 * @throws RuntimeException
944944 */
945945 public function createFolder (string $ folder ): bool {
946- return $ this ->requestAndResponse ('CREATE ' , [$ this ->escapeString ($ folder )], true );
946+ return ( bool ) $ this ->requestAndResponse ('CREATE ' , [$ this ->escapeString ($ folder )], true );
947947 }
948948
949949 /**
@@ -955,7 +955,7 @@ public function createFolder(string $folder): bool {
955955 * @throws RuntimeException
956956 */
957957 public function renameFolder (string $ old , string $ new ): bool {
958- return $ this ->requestAndResponse ('RENAME ' , $ this ->escapeString ($ old , $ new ), true );
958+ return ( bool ) $ this ->requestAndResponse ('RENAME ' , $ this ->escapeString ($ old , $ new ), true );
959959 }
960960
961961 /**
@@ -966,7 +966,7 @@ public function renameFolder(string $old, string $new): bool {
966966 * @throws RuntimeException
967967 */
968968 public function deleteFolder (string $ folder ): bool {
969- return $ this ->requestAndResponse ('DELETE ' , [$ this ->escapeString ($ folder )], true );
969+ return ( bool ) $ this ->requestAndResponse ('DELETE ' , [$ this ->escapeString ($ folder )], true );
970970 }
971971
972972 /**
@@ -977,7 +977,7 @@ public function deleteFolder(string $folder): bool {
977977 * @throws RuntimeException
978978 */
979979 public function subscribeFolder (string $ folder ): bool {
980- return $ this ->requestAndResponse ('SUBSCRIBE ' , [$ this ->escapeString ($ folder )], true );
980+ return ( bool ) $ this ->requestAndResponse ('SUBSCRIBE ' , [$ this ->escapeString ($ folder )], true );
981981 }
982982
983983 /**
@@ -988,7 +988,7 @@ public function subscribeFolder(string $folder): bool {
988988 * @throws RuntimeException
989989 */
990990 public function unsubscribeFolder (string $ folder ): bool {
991- return $ this ->requestAndResponse ('UNSUBSCRIBE ' , [$ this ->escapeString ($ folder )], true );
991+ return ( bool ) $ this ->requestAndResponse ('UNSUBSCRIBE ' , [$ this ->escapeString ($ folder )], true );
992992 }
993993
994994 /**
@@ -998,7 +998,7 @@ public function unsubscribeFolder(string $folder): bool {
998998 * @throws RuntimeException
999999 */
10001000 public function expunge (): bool {
1001- return $ this ->requestAndResponse ('EXPUNGE ' );
1001+ return ( bool ) $ this ->requestAndResponse ('EXPUNGE ' );
10021002 }
10031003
10041004 /**
@@ -1008,7 +1008,7 @@ public function expunge(): bool {
10081008 * @throws RuntimeException
10091009 */
10101010 public function noop (): bool {
1011- return $ this ->requestAndResponse ('NOOP ' );
1011+ return ( bool ) $ this ->requestAndResponse ('NOOP ' );
10121012 }
10131013
10141014 /**
0 commit comments