From 62c266deedbd01723c93f65773362cbe914dfb59 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Fri, 14 Feb 2025 11:52:54 +0100 Subject: [PATCH] fix(repair): PHP8.3 deprecation warning Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/private/Repair/Owncloud/MigrateOauthTables.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/private/Repair/Owncloud/MigrateOauthTables.php b/lib/private/Repair/Owncloud/MigrateOauthTables.php index f17a6b63cb063..01b8e38683321 100644 --- a/lib/private/Repair/Owncloud/MigrateOauthTables.php +++ b/lib/private/Repair/Owncloud/MigrateOauthTables.php @@ -1,4 +1,5 @@ * @@ -18,6 +19,7 @@ * along with this program. If not, see . * */ + namespace OC\Repair\Owncloud; use OC\Authentication\Token\IProvider as ITokenProvider; @@ -34,21 +36,15 @@ 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; } /** @@ -240,7 +236,7 @@ public function run(IOutput $output) { $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, );