diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-04-04 16:14:06 +0200 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-04-09 10:01:47 +0200 |
commit | 0f348516d2c2f9fcd089b224d54312198dcf4b85 (patch) | |
tree | 0feeba06521aec8e1078217c22a63298d925868a /apps/files_external/lib/Lib | |
parent | c53e365ec9a82eb400997a8d585d05522c0e42a1 (diff) | |
download | nextcloud-server-0f348516d2c2f9fcd089b224d54312198dcf4b85.tar.gz nextcloud-server-0f348516d2c2f9fcd089b224d54312198dcf4b85.zip |
fix: Remove obsolete resource typing
In PHP>=8.1, LDAP and FTP resources are always typed objects
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_external/lib/Lib')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/FtpConnection.php | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ <?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) { |