Skip to content

Remove unused symfony/yaml dependency - #500

Merged
TomasVotruba merged 1 commit into
mainfrom
remove-symfony-yaml
Aug 7, 2026
Merged

Remove unused symfony/yaml dependency#500
TomasVotruba merged 1 commit into
mainfrom
remove-symfony-yaml

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

symfony/yaml was only used by YamlToAttributeDoctrineMappingRector, deprecated in #492. That rule's body is now a throw, and the YAML parsing code it needed is gone.

There is no Symfony\Component\Yaml usage left anywhere in config/, rules/, src/ or tests/, so the package no longer needs it in require:

     "require": {
-        "php": ">=8.4",
-        "symfony/yaml": "^7.4|8.0.*"
+        "php": ">=8.4"
     },

This drops a runtime dependency from every rector/rector install.

It was only needed by YamlToAttributeDoctrineMappingRector, deprecated in #492.
There is no Symfony\Component\Yaml usage left in the package.
@TomasVotruba
TomasVotruba merged commit 0a6dec9 into main Aug 7, 2026
7 checks passed
@TomasVotruba
TomasVotruba deleted the remove-symfony-yaml branch August 7, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant