From 0f348516d2c2f9fcd089b224d54312198dcf4b85 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 4 Apr 2024 16:14:06 +0200 Subject: fix: Remove obsolete resource typing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In PHP>=8.1, LDAP and FTP resources are always typed objects Signed-off-by: Côme Chilliet --- apps/files_external/lib/Lib/Storage/FtpConnection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_external/lib/Lib/Storage') diff --git a/apps/files_external/lib/Lib/Storage/FtpConnection.php b/apps/files_external/lib/Lib/Storage/FtpConnection.php index cca03ddda65..fa7302d0460 100644 --- a/apps/files_external/lib/Lib/Storage/FtpConnection.php +++ b/apps/files_external/lib/Lib/Storage/FtpConnection.php @@ -1,6 +1,7 @@ * @@ -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) { -- cgit v1.2.3