Skip to content

Commit

Permalink
fix(repair): PHP8.3 deprecation warning
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf authored and backportbot[bot] committed Feb 15, 2025
1 parent edff281 commit 4a8bea6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions lib/private/Repair/Owncloud/MigrateOauthTables.php
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -19,21 +21,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;
}

/**
Expand Down Expand Up @@ -225,7 +221,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,
);
Expand Down

0 comments on commit 4a8bea6

Please sign in to comment.