symfony/event-dispatcher breaking changes
Updated December 4, 2026
On this page
Latest version v8.2.0, released November 28, 2026. MIT license. Source repository
Its v8.0.0-BETA1 release requires PHP 8.4 or later. PHP end of life dates.
- From v7.0.0 to v8.0.0: 3 breaking changes in 2 versions.
- From v3.0.0 to v8.0.0: 122 breaking changes in 8 versions.
symfony/event-dispatcher v8.0.0 breaking changes
- Signature changed
Symfony\Component\EventDispatcher\EventSubscriberInterface::getSubscribedEvents
Was public static function getSubscribedEvents(); now public static function getSubscribedEvents(): array. packagist.org
symfony/event-dispatcher v8.0.0-BETA1 breaking changes
- Removed
Symfony 8 now requires PHP 8.4 or later, so code running on older PHP versions must upgrade PHP before using this release. github.com - Signature changed
Components now enforce return types, so classes that extend or implement them must declare compatible return types. github.com
symfony/event-dispatcher v7.0.0 breaking changes
- Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::$logger
Was protected $logger; now protected ?LoggerInterface $logger. packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::$stopwatch
Was protected $stopwatch; now protected Stopwatch $stopwatch. packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::addListener
Was public function addListener(string $eventName, callable|array $listener, int $priority = 0); now public function addListener(string $eventName, callable|array $listener, int $priority = 0): void. packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::afterDispatch
Was protected function afterDispatch(string $eventName, object $event); now protected function afterDispatch(string $eventName, object $event): void. packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::beforeDispatch
Was protected function beforeDispatch(string $eventName, object $event); now protected function beforeDispatch(string $eventName, object $event): void. packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::removeListener
Was public function removeListener(string $eventName, callable|array $listener); now public function removeListener(string $eventName, callable|array $listener): void. packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::reset
Was public function reset(); now public function reset(): void. packagist.org - Signature changed
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Component\EventDispatcher\EventDispatcher::addListener
Was public function addListener(string $eventName, callable|array $listener, int $priority = 0); now public function addListener(string $eventName, callable|array $listener, int $priority = 0): void. packagist.org - Signature changed
Symfony\Component\EventDispatcher\EventDispatcher::callListeners
Was protected function callListeners(iterable $listeners, string $eventName, object $event); now protected function callListeners(iterable $listeners, string $eventName, object $event): void. packagist.org
And 11 more in this version. Sign up to see every change
symfony/event-dispatcher v7.0.0-BETA1 breaking changes
- Behavior changed
Methods now declare native PHP return types. Code that extends these classes and overrides methods may need matching return types. github.com - Behavior changed
The package now needs PHP 8.2 as a minimum. Projects on older PHP versions must upgrade PHP before using this release. github.com - Behavior changed
Public and protected properties now have native PHP types. Subclasses that redeclare these properties without matching types may break. github.com
symfony/event-dispatcher v6.0.0 breaking changes
- Removed
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::__construct
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::__construct was removed in symfony/event-dispatcher v6.0.0 packagist.org - Removed
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::$dispatcherService
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::$dispatcherService was removed in symfony/event-dispatcher v6.0.0 packagist.org - Removed
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::$eventAliasesParameter
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::$eventAliasesParameter was removed in symfony/event-dispatcher v6.0.0 packagist.org - Removed
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::$listenerTag
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::$listenerTag was removed in symfony/event-dispatcher v6.0.0 packagist.org - Removed
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::$subscriberTag
Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass::$subscriberTag was removed in symfony/event-dispatcher v6.0.0 packagist.org - Removed
Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy
Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy was removed in symfony/event-dispatcher v6.0.0 packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::__call
Was public function __call(string $method, array $arguments); now public function __call(string $method, array $arguments): mixed. packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::addListener
Was public function addListener(string $eventName, $listener, int $priority = 0); now public function addListener(string $eventName, callable|array $listener, int $priority = 0). packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::getCalledListeners
Was public function getCalledListeners(?Request $request = null); now public function getCalledListeners(Request $request = null): array. packagist.org - Signature changed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::getListenerPriority
Was public function getListenerPriority(string $eventName, $listener); now public function getListenerPriority(string $eventName, callable|array $listener): ?int. packagist.org
And 28 more in this version. Sign up to see every change
symfony/event-dispatcher v6.0.0-BETA1 breaking changes
- Removed
Previously deprecated code has been removed from the package. github.com - Removed
LegacyEventDispatcherProxy
The LegacyEventDispatcherProxy class has been removed. Code using it must be updated. github.com - Removed
RegisterListenersPass
Tags can no longer be configured on RegisterListenersPass. Stop passing tag configuration to it. github.com - Behavior changed
Symfony 6 moves to PHP 8, so PHP 8 is the minimum supported PHP version. github.com - Signature changed
Return types were added to methods, which can affect code that overrides them. github.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
symfony/event-dispatcher v5.0.0 breaking changes
- Removed
Event
The Event class is no longer provided by this package. Use Symfony\Contracts\EventDispatcher\Event instead. github.com - Removed
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::postDispatch
Use afterDispatch instead. packagist.org
And 45 more in this version.
symfony/event-dispatcher v4.0.0 breaking changes
- Removed
ContainerAwareEventDispatcher
The ContainerAwareEventDispatcher class is gone in 4.0.0. Code that instantiates or type-hints it must switch to another event dispatcher implementation. github.com - Removed
Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher
Use EventDispatcher instead. packagist.org
And 3 more in this version.
symfony/event-dispatcher v3.0.0 breaking changes
- Removed
Symfony\Component\EventDispatcher\Event::getDispatcher
The event dispatcher is no longer available from the event; it is passed to listeners on call. packagist.org - Removed
Symfony\Component\EventDispatcher\Event::getName
The event name is no longer available from the event; it is passed to listeners on call. packagist.org
And 3 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.