diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-04-16 17:13:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 17:13:07 +0200 |
commit | 3ad4bbb09692b180971e024ffeaab1d81fe77e4e (patch) | |
tree | 060d41cd105dc3c3bf59e694bed08b33d348f4a8 /apps/files_external | |
parent | 33c4ddd640f084532516a44daadcba4232d82f6e (diff) | |
parent | b6f5cfa83f1c33132e0db6b185d501115e9506bd (diff) | |
download | nextcloud-server-3ad4bbb09692b180971e024ffeaab1d81fe77e4e.tar.gz nextcloud-server-3ad4bbb09692b180971e024ffeaab1d81fe77e4e.zip |
Merge pull request #44658 from nextcloud/fix/migrate-away-from-resource-type
fix: Remove obsolete resource typing
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/FtpConnection.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/files_external/lib/Lib/Storage/FtpConnection.php b/apps/files_external/lib/Lib/Storage/FtpConnection.php index cca03ddda65..0b6c1108d1c 100644 --- a/apps/files_external/lib/Lib/Storage/FtpConnection.php +++ b/apps/files_external/lib/Lib/Storage/FtpConnection.php @@ -1,6 +1,7 @@ <?php declare(strict_types=1); + /** * @copyright Copyright (c) 2020 Robin Appelman <robin@icewind.nl> * @@ -27,8 +28,7 @@ namespace OCA\Files_External\Lib\Storage; * Low level wrapper around the ftp functions that smooths over some difference between servers */ class FtpConnection { - /** @var resource|\FTP\Connection */ - private $connection; + private \FTP\Connection $connection; public function __construct(bool $secure, string $hostname, int $port, string $username, string $password) { if ($secure) { @@ -50,10 +50,7 @@ class FtpConnection { } public function __destruct() { - if ($this->connection) { - ftp_close($this->connection); - } - $this->connection = null; + ftp_close($this->connection); } public function setUtf8Mode(): bool { |