From ef5edb6801043b082a2b0565ffd74d8001ab2a3d Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 29 Aug 2025 14:28:35 +0200 Subject: [PATCH] fix(psalm): Fix ParamNameMismatch with Job::run Signed-off-by: Carl Schwan --- .../lib/Migration/BuildCalendarSearchIndexBackgroundJob.php | 6 +++--- .../lib/Migration/BuildSocialSearchIndexBackgroundJob.php | 6 +++--- core/BackgroundJobs/CheckForUserCertificates.php | 2 +- lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php | 4 ++-- lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php b/apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php index da8f31e7d3d..c6a5c625021 100644 --- a/apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php +++ b/apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php @@ -26,9 +26,9 @@ class BuildCalendarSearchIndexBackgroundJob extends QueuedJob { parent::__construct($timeFactory); } - public function run($arguments) { - $offset = (int)$arguments['offset']; - $stopAt = (int)$arguments['stopAt']; + public function run($argument) { + $offset = (int)$argument['offset']; + $stopAt = (int)$argument['stopAt']; $this->logger->info('Building calendar index (' . $offset . '/' . $stopAt . ')'); diff --git a/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php b/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php index fab61d56fd6..346c8725b10 100644 --- a/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php +++ b/apps/dav/lib/Migration/BuildSocialSearchIndexBackgroundJob.php @@ -27,9 +27,9 @@ class BuildSocialSearchIndexBackgroundJob extends QueuedJob { parent::__construct($timeFactory); } - public function run($arguments) { - $offset = $arguments['offset']; - $stopAt = $arguments['stopAt']; + public function run($argument) { + $offset = $argument['offset']; + $stopAt = $argument['stopAt']; $this->logger->info('Indexing social profile data (' . $offset . '/' . $stopAt . ')'); diff --git a/core/BackgroundJobs/CheckForUserCertificates.php b/core/BackgroundJobs/CheckForUserCertificates.php index c4ac28905ef..e8dd0cffbdd 100644 --- a/core/BackgroundJobs/CheckForUserCertificates.php +++ b/core/BackgroundJobs/CheckForUserCertificates.php @@ -30,7 +30,7 @@ class CheckForUserCertificates extends QueuedJob { /** * Checks all user directories for old user uploaded certificates */ - public function run($arguments): void { + public function run($argument): void { $uploadList = []; $this->userManager->callForSeenUsers(function (IUser $user) use (&$uploadList): void { $userId = $user->getUID(); diff --git a/lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php b/lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php index 6c606453bb9..be63bda063e 100644 --- a/lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php +++ b/lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php @@ -29,8 +29,8 @@ class CleanPreviewsBackgroundJob extends QueuedJob { parent::__construct($timeFactory); } - public function run($arguments) { - $uid = $arguments['uid']; + public function run($argument): void { + $uid = $argument['uid']; if (!$this->userManager->userExists($uid)) { $this->logger->info('User no longer exists, skip user ' . $uid); return; diff --git a/lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php b/lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php index e145fb71863..e5f80eb31bd 100644 --- a/lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php +++ b/lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php @@ -36,7 +36,7 @@ class MoveAvatarsBackgroundJob extends QueuedJob { } } - public function run($arguments) { + public function run($argument) { $this->logger->info('Started migrating avatars to AppData folder'); $this->moveAvatars(); $this->logger->info('All avatars migrated to AppData folder');