Upgrading symfony/event-dispatcher 7 to 8
Breakingv7.4.17 → v8.2.0Breaking1Platform1Deprecated1New8Changed7Fixed11Other1
Fetching 18 releases from GitHub…16 / 18
BreakingUpgrade verdict
1 breaking change and a platform requirement change.
In plain terms
- Classes and methods across Symfony components now declare return types, so custom code that overrides them may need matching return types.
- This version requires PHP 8.4 or newer.
- Changing the container's event dispatcher while the application runs is deprecated.
Must act 3 items need code or config changes
PHP requirement changed in v8.1.0-BETA1: >=8.2 → >=8.4.1.
Adds symfony/deprecation-contracts ^2.5|^3.
Moves symfony/event-dispatcher-contracts ^2.5|^3 → ^3.8.1. Your build may pick other versions.
What you must change
Breaking1
Enforces return types on all components, which may break subclasses and implementations lacking them.
Platform1
Bumps Symfony 8 to require PHP >= 8.4.
Deprecations to plan for
Deprecated1
Deprecates mutating the event dispatcher of the container at runtime.