-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50836 from nextcloud/backport/50809/stable29
[stable29] fix(repair): PHP8.3 deprecation warning
- Loading branch information
Showing
1 changed file
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright 2021 Louis Chemineau <[email protected]> | ||
* | ||
|
@@ -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; | ||
|
@@ -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, | ||
); | ||
|