Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(psalm): Fix ParamNameMismatch with Job::run
Signed-off-by: Carl Schwan <[email protected]>
  • Loading branch information
CarlSchwan committed Aug 29, 2025
commit ef5edb6801043b082a2b0565ffd74d8001ab2a3d
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public function __construct(
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 . ')');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public function __construct(
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 . ')');

Expand Down
2 changes: 1 addition & 1 deletion core/BackgroundJobs/CheckForUserCertificates.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(
/**
* 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();
Expand Down
4 changes: 2 additions & 2 deletions lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function __construct(
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;
Expand Down
2 changes: 1 addition & 1 deletion lib/private/Repair/Owncloud/MoveAvatarsBackgroundJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(
}
}

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');
Expand Down