diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-02-15 16:05:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-15 16:05:16 +0100 |
commit | 9cd0b43542892e4dff1b8cda4b0a31bb2ed379d7 (patch) | |
tree | 99ee5a7aaf4693f6dec34c2b51321a52d3e0c31c | |
parent | edff2818446dd9132db83c7d4e700ec02b475c51 (diff) | |
parent | 4a8bea67c7a85209879838942a8e22ddbb505d80 (diff) | |
download | nextcloud-server-9cd0b43542892e4dff1b8cda4b0a31bb2ed379d7.tar.gz nextcloud-server-9cd0b43542892e4dff1b8cda4b0a31bb2ed379d7.zip |
Merge pull request #50837 from nextcloud/backport/50809/stable30
[stable30] fix(repair): PHP8.3 deprecation warning
-rw-r--r-- | lib/private/Repair/Owncloud/MigrateOauthTables.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/private/Repair/Owncloud/MigrateOauthTables.php b/lib/private/Repair/Owncloud/MigrateOauthTables.php index 07a955db181..79f76cf1c9f 100644 --- a/lib/private/Repair/Owncloud/MigrateOauthTables.php +++ b/lib/private/Repair/Owncloud/MigrateOauthTables.php @@ -1,8 +1,10 @@ <?php + /** * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ + namespace OC\Repair\Owncloud; use OC\Authentication\Token\IProvider as ITokenProvider; @@ -19,21 +21,15 @@ use OCP\Security\ICrypto; use OCP\Security\ISecureRandom; class MigrateOauthTables implements IRepairStep { - /** @var Connection */ - protected $db; - /** - * @param Connection $db - */ public function __construct( - Connection $db, + protected Connection $db, private AccessTokenMapper $accessTokenMapper, private ITokenProvider $tokenProvider, private ISecureRandom $random, private ITimeFactory $timeFactory, private ICrypto $crypto, ) { - $this->db = $db; } /** @@ -225,7 +221,7 @@ class MigrateOauthTables implements IRepairStep { $row['user_id'], $row['user_id'], null, - "oc_migrated_client${clientId}_t{$now}_i$index", + "oc_migrated_client{$clientId}_t{$now}_i$index", IToken::PERMANENT_TOKEN, IToken::DO_NOT_REMEMBER, ); |