rector fixes after rector's upgrade

This commit is contained in:
2024-08-28 15:32:57 +02:00
parent e477a49c92
commit 2d82c1e105
6 changed files with 31 additions and 43 deletions

View File

@@ -23,16 +23,16 @@ use Symfony\Component\Messenger\MessageBusInterface;
* This cronjob is executed every 7days, to remove expired stored object. For every
* expired stored object, every version is sent to message bus for async deletion.
*/
final class RemoveExpiredStoredObjectCronJob implements CronJobInterface
final readonly class RemoveExpiredStoredObjectCronJob implements CronJobInterface
{
public const string KEY = 'remove-expired-stored-object';
private const string LAST_DELETED_KEY = 'last-deleted-stored-object-id';
public function __construct(
private readonly ClockInterface $clock,
private readonly MessageBusInterface $messageBus,
private readonly StoredObjectRepositoryInterface $storedObjectRepository
private ClockInterface $clock,
private MessageBusInterface $messageBus,
private StoredObjectRepositoryInterface $storedObjectRepository
) {}
public function canRun(?CronJobExecution $cronJobExecution): bool