rector-symfony
rector-symfony copied to clipboard
Rector upgrade rules for Symfony
See https://symfony.com/blog/new-in-symfony-6-3-dependency-injection-improvements#nesting-related-attributes-in-autowire ```php class AutowireNestedAttributes implements AsDecoratorInterface { public function __construct( #[Autowire([ 'decorated' => new MapDecorated(), 'iterator' => new TaggedIterator('foo'), 'locator' => new TaggedLocator('foo'), 'service' => new Autowire(service: 'bar') ])]...
I'm upgrading a few project from Symfony 5.4 to 6.4. I first try to upgrade to Symfony 6.0 and I don't quite understand the rules about `ContainerInterface`. ```php $rectorConfig->ruleWithConfiguration(ReplaceServiceArgumentRector::class, [...
As I can see this rule is only 3 months old and has been already added as deprecated. Is it a mistake?
PHP version: 8.3.9 Symfony version: 7.1 Rector version: 1.2.3 See demo here: [https://getrector.com/demo/de776077-7f25-484f-bfea-1f5cf23a0443](https://getrector.com/demo/de776077-7f25-484f-bfea-1f5cf23a0443). Applying the `StringExtensionToConfigBuilderRector` rule to this file: ```php
Example: ```php abstract class AbstractHandler implements MessageHandlerInterface { } class ExampleHandler extends AbstractHandler { // ... } ``` Thanks to symfony-frameworks `registerForAutoconfiguration` the ExampleHandler is tagged as `messenger.message_handler`, as the...