Skip to content

IBX-12046: Removed Symfony 8 deprecated code usage - #29

Open
ViniTou wants to merge 1 commit into
6.0from
ibx-12046-symfony-deprecations
Open

IBX-12046: Removed Symfony 8 deprecated code usage#29
ViniTou wants to merge 1 commit into
6.0from
ibx-12046-symfony-deprecations

Conversation

@ViniTou

@ViniTou ViniTou commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12046

Related PRs:

Description:

Static and live scans of this repo against Symfony 7.4/PHP 8.4 turned up a single hit: an implicit-nullable parameter, string $schedule = null, in CronJobsRegistry::addCronJob(), which PHP 8.4 deprecates. It is now declared ?string $schedule = null. No other Symfony 8 deprecation patterns (security voters/constraints, Request::get(), OptionsResolver nested defaults, Console Application::add()/Command::$defaultName statics, symfony/templating, PropertyInfo\Type, tagged services, Serializer/Routing annotations) were found in this repo's src/tests. There are no BC concerns: the parameter stays optional and nullable in both signatures, and the method has no callers within this repo. No cross-repo merge-order dependency: this is a leaf-level signature widening, not a change to an abstract/contract class other repos extend.

For QA:

No functional behavior change; addCronJob() still accepts null as before. Nothing to exercise beyond a normal cron job registration smoke test if desired.

Documentation:

N/A — no public API/behavior change, only a type-declaration widening to remove a PHP 8.4 deprecation notice.

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.
@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants