From 42bf1ed594c8ae56f8a099c33bf8096ccb7a0253 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Wed, 9 Sep 2026 13:53:02 +0200 Subject: [PATCH] IBX-12046: Removed Symfony 8 deprecated code usage Prefixed the implicit-nullable `string $schedule = null` parameter in CronJobsRegistry::addCronJob() with `?` to avoid the PHP 8.4 deprecation. No other Symfony 8 deprecation patterns (voters, security constraints, Request::get(), OptionsResolver nested defaults, Console AsCommand/defaultName, templating/property-info) were found in this repo. --- src/bundle/Registry/CronJobsRegistry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Registry/CronJobsRegistry.php b/src/bundle/Registry/CronJobsRegistry.php index fdbd1d6..7978fff 100644 --- a/src/bundle/Registry/CronJobsRegistry.php +++ b/src/bundle/Registry/CronJobsRegistry.php @@ -44,7 +44,7 @@ public function __construct(string $environment, SiteAccessServiceInterface $sit $this->siteAccessService = $siteAccessService; } - public function addCronJob(Command $command, string $schedule = null, string $category = self::DEFAULT_CATEGORY, string $options = ''): void + public function addCronJob(Command $command, ?string $schedule = null, string $category = self::DEFAULT_CATEGORY, string $options = ''): void { $commandName = $command->getName(); if (null === $commandName) {