symfony/dependency-injection 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.
symfony/dependency-injection v8.0.0 breaking changes
- Removed
Symfony\Component\DependencyInjection\Attribute\TaggedIterator
Symfony\Component\DependencyInjection\Attribute\TaggedIterator was removed in symfony/dependency-injection v8.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Attribute\TaggedLocator
Symfony\Component\DependencyInjection\Attribute\TaggedLocator was removed in symfony/dependency-injection v8.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Compiler\CheckFactoryBuilderCircularReferencePass
Symfony\Component\DependencyInjection\Compiler\CheckFactoryBuilderCircularReferencePass was removed in symfony/dependency-injection v8.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Compiler\RemoveBuildParametersPass::__construct
Symfony\Component\DependencyInjection\Compiler\RemoveBuildParametersPass::__construct was removed in symfony/dependency-injection v8.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge::isFromExpression
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge::isFromExpression was removed in symfony/dependency-injection v8.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge::isFromMultiUseArgument
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge::isFromMultiUseArgument was removed in symfony/dependency-injection v8.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\ContainerBuilder::ANONYMOUS_ID_REGEXP
Symfony\Component\DependencyInjection\ContainerBuilder::ANONYMOUS_ID_REGEXP was removed in symfony/dependency-injection v8.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Loader\XmlFileLoader
Symfony\Component\DependencyInjection\Loader\XmlFileLoader was removed in symfony/dependency-injection v8.0.0 packagist.org - Signature changed
Symfony\Component\DependencyInjection\Compiler\AbstractRecursivePass::processValue
Was protected function processValue(mixed $value, bool $isRoot = false); now protected function processValue(mixed $value, bool $isRoot = false): mixed. packagist.org - Signature changed
Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process
Was public function process(ContainerBuilder $container); now public function process(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph::connect
Was public function connect(?string $sourceId, mixed $sourceValue, ?string $destId, mixed $destValue = null, ?Reference $reference = null, bool $lazy = false, bool $weak = false, bool $byConstructor = false, bool $byMultiUseArgument =... packagist.org - Signature changed
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge::__construct
Was public function __construct(private ServiceReferenceGraphNode $sourceNode, private ServiceReferenceGraphNode $destNode, private mixed $value = null, private bool $lazy = false, private bool $weak = false, private bool $byConstructor =... packagist.org - Signature changed
Symfony\Component\DependencyInjection\ContainerBuilder::findTaggedResourceIds
Was public function findTaggedResourceIds(string $tagName/*, bool $throwOnAbstract = true */): array; now public function findTaggedResourceIds(string $tagName, bool $throwOnAbstract = true): array. packagist.org - Signature changed
Symfony\Component\DependencyInjection\ContainerBuilder::registerAliasForArgument
Was public function registerAliasForArgument(string $id, string $type, ?string $name = null/*, ?string $target = null */): Alias; now public function registerAliasForArgument(string $id, string $type, ?string $name = null, ?string $target... packagist.org - Signature changed
Symfony\Component\DependencyInjection\Extension\ConfigurableExtensionInterface::loadExtension
Was public function loadExtension(array $config, ContainerConfigurator $configurator, ContainerBuilder $container): void; now public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void. packagist.org - Signature changed
Symfony\Component\DependencyInjection\Extension\ConfigurableExtensionInterface::prependExtension
Was public function prependExtension(ContainerConfigurator $configurator, ContainerBuilder $container): void; now public function prependExtension(ContainerConfigurator $container, ContainerBuilder $builder): void. packagist.org - Signature changed
Symfony\Component\DependencyInjection\Extension\ConfigurationExtensionInterface::getConfiguration
Was public function getConfiguration(array $config, ContainerBuilder $container); now public function getConfiguration(array $config, ContainerBuilder $container): ?ConfigurationInterface. packagist.org - Signature changed
Symfony\Component\DependencyInjection\Extension\ExtensionInterface::getAlias
Was public function getAlias(); now public function getAlias(): string. packagist.org - Signature changed
Symfony\Component\DependencyInjection\Extension\ExtensionInterface::load
Was public function load(array $configs, ContainerBuilder $container); now public function load(array $configs, ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface::prepend
Was public function prepend(ContainerBuilder $container); now public function prepend(ContainerBuilder $container): void. packagist.org - Signature changed
Symfony\Component\DependencyInjection\Loader\PhpFileLoader::__construct
Was public function __construct(ContainerBuilder $container, FileLocatorInterface $locator, ?string $env = null, ConfigBuilderGeneratorInterface|bool|null $generator = null, bool $prepend = false); now public function __construct(protected... packagist.org
symfony/dependency-injection v8.0.0-BETA1 breaking changes
- Removed
The XML configuration format is no longer supported. Convert XML configuration files to another supported format. github.com - Removed
Symfony 8 requires PHP 8.4 or later. Upgrade PHP before upgrading the package. github.com - Removed
PHP config files can no longer use $this or the loader's internal state. Use the documented configuration API instead. github.com - Removed
The fluent PHP config format is no longer supported. Rewrite PHP configuration using the array-based or other supported formats. github.com - Removed
!tagged
The !tagged tag is removed. Use !tagged_iterator instead. github.com - Removed
[TaggedIterator]
The #[TaggedIterator] attribute is removed. Use the supported service configuration instead. github.com - Removed
[TaggedLocator]
The #[TaggedLocator] attribute is removed. Use the supported service configuration instead. github.com - Removed
fluent PHP config format
The fluent PHP format for configuration is no longer supported; migrate configuration to another supported format. github.com - Removed
Symfony\Component\DependencyInjection\ContainerBuilder::getAutoconfiguredAttributes
The previously deprecated ContainerBuilder::getAutoconfiguredAttributes() method is removed. Stop calling it. packagist.org - Removed
Symfony\Component\DependencyInjection\Extension\ExtensionInterface::getNamespace
ExtensionInterface no longer defines getNamespace(). Custom extensions implementing it must drop or adapt that method. packagist.org
And 9 more in this version. Sign up to see every change
symfony/dependency-injection v7.0.0 breaking changes
- Removed
Symfony\Component\DependencyInjection\Argument\ReferenceSetArgumentTrait
Symfony\Component\DependencyInjection\Argument\ReferenceSetArgumentTrait was removed in symfony/dependency-injection v7.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Attribute\MapDecorated
Use AutowireDecorated instead. packagist.org - Removed
Symfony\Component\DependencyInjection\Compiler\CheckFactoryBuilderCircularReferencePass
Symfony\Component\DependencyInjection\Compiler\CheckFactoryBuilderCircularReferencePass was removed in symfony/dependency-injection v7.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Compiler\RemoveBuildParametersPass::__construct
Symfony\Component\DependencyInjection\Compiler\RemoveBuildParametersPass::__construct was removed in symfony/dependency-injection v7.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge::isFromExpression
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge::isFromExpression was removed in symfony/dependency-injection v7.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge::isFromMultiUseArgument
Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraphEdge::isFromMultiUseArgument was removed in symfony/dependency-injection v7.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\ContainerAwareInterface
Symfony\Component\DependencyInjection\ContainerAwareInterface was removed in symfony/dependency-injection v7.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\ContainerAwareTrait
Symfony\Component\DependencyInjection\ContainerAwareTrait was removed in symfony/dependency-injection v7.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\ContainerBuilder::ANONYMOUS_ID_REGEXP
Symfony\Component\DependencyInjection\ContainerBuilder::ANONYMOUS_ID_REGEXP was removed in symfony/dependency-injection v7.0.0 packagist.org - Removed
Symfony\Component\DependencyInjection\LazyProxy\ProxyHelper
Symfony\Component\DependencyInjection\LazyProxy\ProxyHelper was removed in symfony/dependency-injection v7.0.0 packagist.org
And 136 more in this version. Sign up to see every change
symfony/dependency-injection v7.0.0-BETA1 breaking changes
- Removed
Code paths deprecated across the component were removed in this release. github.com - Removed
Deprecated code paths were removed in this release, so code relying on them must be updated. github.com - Removed
Backward-compatibility layers related to new methods and new parameters were removed. github.com - Removed
The package now needs PHP 8.2 or later. Upgrade PHP before updating. github.com - Removed
Code paths that were deprecated earlier are removed, so code relying on them will break. github.com - Behavior changed
The package now requires PHP 8.2 or later, so older PHP versions are no longer supported. github.com - Signature changed
Public and protected properties now have types, which can break subclasses that declare them differently. github.com - Signature changed
Magic methods now declare return types, which can break overrides with incompatible return types. github.com - Signature changed
BC layers for methods and parameters added in earlier releases are removed, so code that depended on the old forms must be updated. github.com - Signature changed
Public and protected properties now declare types, which can break subclasses that redeclare them without types. github.com
And 2 more in this version. Sign up to see every change
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.