diff --git a/src/Ftp/FtpAdapter.php b/src/Ftp/FtpAdapter.php index fd5d169a1..797ab0c93 100644 --- a/src/Ftp/FtpAdapter.php +++ b/src/Ftp/FtpAdapter.php @@ -120,6 +120,8 @@ private function connection() if ( ! $this->hasFtpConnection()) { $this->connection = $this->connectionProvider->createConnection($this->connectionOptions); $this->rootDirectory = $this->resolveConnectionRoot($this->connection); + + return $this->connection; } if ($this->connectivityChecker->isConnected($this->connection) === false) {