This can only happen when throwing on invalid connection parameters, this is a quick fix that will do for now.
@@ -54,7 +54,7 @@ class StreamConnection extends AbstractConnection
*/
public function __destruct()
{
- if (!$this->parameters->persistent) {
+ if (isset($this->parameters) && !$this->parameters->persistent) {
$this->disconnect();
}