From 6f7baa0eda7d871a94203145cde6d69acf9c1342 Mon Sep 17 00:00:00 2001 From: Frank de Jonge Date: Sat, 9 Mar 2024 16:55:49 +0100 Subject: [PATCH] Set connection to null on disconnect. --- src/PhpseclibV3/StubSftpConnectionProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PhpseclibV3/StubSftpConnectionProvider.php b/src/PhpseclibV3/StubSftpConnectionProvider.php index 2dc5258ef..0e673a7ee 100644 --- a/src/PhpseclibV3/StubSftpConnectionProvider.php +++ b/src/PhpseclibV3/StubSftpConnectionProvider.php @@ -25,6 +25,7 @@ public function disconnect(): void { if ($this->connection) { $this->connection->disconnect(); + $this->connection = null; } }