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 <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored and backportbot[bot] committed Feb 15, 2025
1 parent 0f055d3 commit 62c266d
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,4 +1,5 @@
<?php

/**
* @copyright 2021 Louis Chemineau <louis@chmn.me>
*
Expand All @@ -18,6 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

namespace OC\Repair\Owncloud;

use OC\Authentication\Token\IProvider as ITokenProvider;
Expand All @@ -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;
}

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

0 comments on commit 62c266d

Please sign in to comment.