aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2025-02-14 11:52:54 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-02-15 11:07:37 +0000
commit62c266deedbd01723c93f65773362cbe914dfb59 (patch)
tree3fed2f323a14ca2946fdc323d46cc80082f6fde2
parent0f055d38fd6f7ed585d74a2bcd7132d4a83ed564 (diff)
downloadnextcloud-server-backport/50809/stable29.tar.gz
nextcloud-server-backport/50809/stable29.zip
fix(repair): PHP8.3 deprecation warningbackport/50809/stable29
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-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 f17a6b63cb0..01b8e386833 100644
--- a/lib/private/Repair/Owncloud/MigrateOauthTables.php
+++ b/lib/private/Repair/Owncloud/MigrateOauthTables.php
@@ -1,4 +1,5 @@
<?php
+
/**
* @copyright 2021 Louis Chemineau <louis@chmn.me>
*
@@ -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\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;
}
/**
@@ -240,7 +236,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,
);