Skip to content

build(deps): bump symfony/dependency-injection from 7.1.3 to 7.4.9#233

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/symfony/dependency-injection-7.4.9
Open

build(deps): bump symfony/dependency-injection from 7.1.3 to 7.4.9#233
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/composer/symfony/dependency-injection-7.4.9

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 4, 2026

Bumps symfony/dependency-injection from 7.1.3 to 7.4.9.

Release notes

Sourced from symfony/dependency-injection's releases.

v7.4.9

Changelog (symfony/dependency-injection@v7.4.8...v7.4.9)

v7.4.8

Changelog (symfony/dependency-injection@v7.4.7...v7.4.8)

v7.4.7

Changelog (symfony/dependency-injection@v7.4.6...v7.4.7)

  • bug #63508 Handle Stringable for string-typed arguments in CheckTypeDeclarationsPass (@​yoeunes)
  • bug #63506 Fix TypeError when using a custom container base class with typed $parameterBag (@​nicolas-grekas)

v7.4.6

Changelog (symfony/dependency-injection@v7.4.5...v7.4.6)

v7.4.5

Changelog (symfony/dependency-injection@v7.4.4...v7.4.5)

v7.4.4

Changelog (symfony/dependency-injection@v7.4.3...v7.4.4)

  • bug #63160 Fix alias chain inversion when deprecated alias points to decorated service (amateescu)
  • bug #62920 Allow ParamConfigurator in ParametersConfig (@​jack-worman)

v7.4.3

Changelog (symfony/dependency-injection@v7.4.2...v7.4.3)

... (truncated)

Changelog

Sourced from symfony/dependency-injection's changelog.

CHANGELOG

8.1

  • Support autowiring env vars as closures or Stringable when using #[Autowire(env: 'FOO')]
  • Add EnvClosureArgument and !env_closure YAML tag to inject env vars as closures or Stringable arguments
  • Add AddBehaviorDescribingTagsPass to allow bundles to extend the list of behavior-describing tags
  • Add Kernel and Bundle infrastructure in the Kernel\ subnamespace
  • Add $extensions parameter to MergeExtensionConfigurationPass to ensure registered extensions are implicitly loaded
  • Add support for using service stacks as decorators, including decorates_tag
  • Add support for decorating all services with a specific tag using the container.tag_decorator resource tag or #[AsTagDecorator]
  • Add support for SOURCE_DATE_EPOCH environment variable
  • Deprecate configuring options alias, parent, synthetic, file, arguments, properties, configurator or calls when using from_callable
  • Deprecate default index/priority methods when defining tagged locators/iterators; use the #[AsTaggedItem] attribute instead
  • Allow environment variables with . in them
  • Add argument exclude to ContainerConfigurator::import()
  • Add target parameter to #[AsAlias] to create target-specific autowiring aliases
  • Deprecate named autowiring alias that don't use #[Target]
  • Allow passing a Definition instance to Definition::setFactory() and Definition::setConfigurator(), its __invoke() method will be called

8.0

  • Remove support for using $this or the loader's internal scope from PHP config files; use the $loader variable instead
  • Remove ExtensionInterface::getXsdValidationBasePath() and getNamespace() without alternatives, the XML configuration format is no longer supported
  • Add argument $throwOnAbstract to ContainerBuilder::findTaggedResourceIds()
  • Registering a service without a class when its id is a non-existing FQCN throws an error
  • Remove #[TaggedIterator] and #[TaggedLocator] attributes, replaced by #[AutowireLocator] and #[AutowireIterator]
  • Remove ContainerBuilder::getAutoconfiguredAttributes(), replaced by ContainerBuilder::getAttributeAutoconfigurators()
  • Remove !tagged tag, use !tagged_iterator instead
  • Add argument $target to ContainerBuilder::registerAliasForArgument()
  • Remove support for the XML configuration format
  • Remove the fluent PHP format for semantic configuration, instantiate builders inline with the config array as argument and return them instead

7.4

  • [BC BREAK] Throw when using $this or its internal scope from PHP config files; use the $loader variable instead
  • Allow adding resource tags using any config format
  • Allow #[AsAlias] to be extended
  • Parse attributes found on abstract classes for resource definitions
  • Add argument $target to ContainerBuilder::registerAliasForArgument()
  • Deprecate registering a service without a class when its id is a non-existing FQCN
  • Allow multiple #[AsDecorator] attributes
  • Handle declaring services using PHP arrays that follow the same shape as corresponding yaml files
  • Add AppReference to help writing PHP configs using yaml-like array-shapes
  • Deprecate XML configuration format, use YAML or PHP instead
  • Deprecate ExtensionInterface::getXsdValidationBasePath() and getNamespace()

... (truncated)

Commits
  • 27cd9f9 Merge branch '6.4' into 7.4
  • 4f66d60 [DependencyInjection] Reject circular references through a factory builder's ...
  • 40b7c10 minor #64004 [7.4] Remove usages of named arguments in tests (chalasr)
  • 621c5e0 [7.4] Remove usages of named arguments in tests
  • 6fc5e85 Merge branch '6.4' into 7.4
  • e709fb3 bug #64006 [DependencyInjection] Fix hidden dependency on symfony/config in P...
  • 4fc7627 [DependencyInjection] Fix hidden dependency on symfony/config in PhpDumper
  • 61a8cc1 Merge branch '6.4' into 7.4
  • 3c09a77 [DependencyInjection] Log every build parameter removed during compilation
  • cc8db49 Update XSD references in phpunit.xml.dist files
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [symfony/dependency-injection](https://github.com/symfony/dependency-injection) from 7.1.3 to 7.4.9.
- [Release notes](https://github.com/symfony/dependency-injection/releases)
- [Changelog](https://github.com/symfony/dependency-injection/blob/8.1/CHANGELOG.md)
- [Commits](symfony/dependency-injection@v7.1.3...v7.4.9)

---
updated-dependencies:
- dependency-name: symfony/dependency-injection
  dependency-version: 7.4.9
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels May 4, 2026
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

Copy link
Copy Markdown

@codacy-production codacy-production Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates symfony/dependency-injection to v7.4.9. While the primary dependency remains within the v7.x branch, the transitive dependency symfony/var-exporter has been bumped to v8.0.9.

This update introduces a critical breaking change: symfony/var-exporter v8.0.9 requires PHP 8.4 or higher. This will cause deployment or runtime failures if your environment is running PHP 8.2 or 8.3. This requirement should prevent merging unless the infrastructure is already updated to PHP 8.4.

About this PR

  • The upgrade of symfony/var-exporter to v8.0.9 introduces a hard requirement for PHP 8.4. This major version bump for a dependency is not highlighted in the PR description and constitutes a breaking change for projects on older PHP runtimes.

Test suggestions

  • Verify dependency resolution and lock file integrity via composer install.
  • Verify application boots and the DI container compiles successfully.
  • Confirm compatibility with PHP 8.2 and 8.3, as symfony/var-exporter now requires PHP 8.4.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify dependency resolution and lock file integrity via `composer install`.
2. Verify application boots and the DI container compiles successfully.
3. Confirm compatibility with PHP 8.2 and 8.3, as `symfony/var-exporter` now requires PHP 8.4.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

Comment thread composer.lock
},
"require": {
"php": ">=8.2"
"php": ">=8.4"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 HIGH RISK

The update to symfony/var-exporter v8.0.9 (line 956) raises the minimum PHP requirement to 8.4. This is a breaking change for projects supporting PHP 8.2 or 8.3.

If you do not intend to upgrade the infrastructure to PHP 8.4 immediately, you should restrict the platform PHP version in your composer.json to prevent the installation of v8 components:

  1. Update composer.json to set the platform PHP version (e.g., "php": "8.2.0") in the config section.
  2. Run composer update to reconcile composer.lock with a compatible version (v7.x) of symfony/var-exporter.

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

Labels

dependencies Pull requests that update a dependency file php Pull requests that update php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants