We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f1633 commit 9857984Copy full SHA for 9857984
src/IMAP/Client.php
@@ -237,7 +237,7 @@ public function connect($attempts = 3) {
237
* @return $this
238
*/
239
public function disconnect() {
240
- if ($this->isConnected() && $this->connection !== false) {
+ if ($this->isConnected() && $this->connection !== false && is_integer($this->connection) === false) {
241
$this->errors = array_merge($this->errors, imap_errors() ?: []);
242
$this->connected = !imap_close($this->connection, CL_EXPUNGE);
243
}
0 commit comments