aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2025-02-15 12:06:28 +0100
committerGitHub <noreply@github.com>2025-02-15 12:06:28 +0100
commitb9f8539c63fb153df1e7124c121cd98d10fe3d01 (patch)
tree9072919b105c1c5aa6ca37b8534d8c998b630e50 /lib
parentba3868a403100c31ba22ebce45e6c4f4ddf95aa1 (diff)
parent885175772bfdea32872b8e23beefb79402248c3f (diff)
downloadnextcloud-server-b9f8539c63fb153df1e7124c121cd98d10fe3d01.tar.gz
nextcloud-server-b9f8539c63fb153df1e7124c121cd98d10fe3d01.zip
Merge pull request #50809 from nextcloud/fixPhp83Deprecation
fix(repair): PHP8.3 deprecation warning
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Repair/Owncloud/MigrateOauthTables.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/private/Repair/Owncloud/MigrateOauthTables.php b/lib/private/Repair/Owncloud/MigrateOauthTables.php
index 1e06d7101c1..cd5087cb588 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,
);