After the upgrade the logout function always throws the RuntimeException. I checked the $this->stream
value and it's NULL.
src/Connection/Protocols/ImapProtocol.php
public function logout(): array { if (!$this->stream) { throw new RuntimeException('not connected'); } $result = $this->requestAndResponse('LOGOUT', [], true); fclose($this->stream); $this->stream = null; $this->uid_cache = null; return $result; }
Does anyone know how to solve this? Thanks!