Skip to content

Commit ab07c94

Browse files
Merge pull request #50838 from nextcloud/backport/50809/stable31
[stable31] fix(repair): PHP8.3 deprecation warning
2 parents 7e5b706 + 361a675 commit ab07c94

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/private/Repair/Owncloud/MigrateOauthTables.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
23
/**
34
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
45
* SPDX-License-Identifier: AGPL-3.0-or-later
56
*/
7+
68
namespace OC\Repair\Owncloud;
79

810
use OC\Authentication\Token\IProvider as ITokenProvider;
@@ -19,21 +21,15 @@
1921
use OCP\Security\ISecureRandom;
2022

2123
class MigrateOauthTables implements IRepairStep {
22-
/** @var Connection */
23-
protected $db;
2424

25-
/**
26-
* @param Connection $db
27-
*/
2825
public function __construct(
29-
Connection $db,
26+
protected Connection $db,
3027
private AccessTokenMapper $accessTokenMapper,
3128
private ITokenProvider $tokenProvider,
3229
private ISecureRandom $random,
3330
private ITimeFactory $timeFactory,
3431
private ICrypto $crypto,
3532
) {
36-
$this->db = $db;
3733
}
3834

3935
/**
@@ -225,7 +221,7 @@ public function run(IOutput $output) {
225221
$row['user_id'],
226222
$row['user_id'],
227223
null,
228-
"oc_migrated_client${clientId}_t{$now}_i$index",
224+
"oc_migrated_client{$clientId}_t{$now}_i$index",
229225
IToken::PERMANENT_TOKEN,
230226
IToken::DO_NOT_REMEMBER,
231227
);

0 commit comments

Comments
 (0)