rector-symfony icon indicating copy to clipboard operation
rector-symfony copied to clipboard

Rector upgrade rules for Symfony

Results 25 rector-symfony issues
Sort by recently updated
recently updated
newest added

When i have a `setDescription` in my `configure` function it is not moved to static property for https://github.com/rectorphp/rector-symfony/blob/main/docs/rector_rules_overview.md#makecommandlazyrector and not moved when i enable https://github.com/rectorphp/rector-symfony/blob/main/docs/rector_rules_overview.md#commandpropertytoattributerector

# Bug Report | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | e.g. v0.13.10 (invoke `vendor/bin/rector --version`) | Current behaviour of GetToConstructorInjectionRector is that it creates...

bug
test fixture needed

| Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | 0.14.4 | Applied rules: SymfonySetList::SYMFONY_54, SymfonySetList::SYMFONY_CODE_QUALITY, SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION, Error: [ERROR] Could not process "/Users/krzysztofdeneka/htdocs/emoleasing/src/Controller/SelfEmployedController.php" file, due to: "System...

# Bug Report CommandPropertyToAttributeRector is not setting `aliases` and `hidden` in `AsCommand` attribute | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | |...

With https://github.com/rectorphp/rector-symfony/blob/main/docs/rector_rules_overview.md#consoleexecutereturnintrector we got explicit return type int but it is even nicer to use Symfony Command constants they also use it as example in there documentation see https://symfony.com/doc/current/console.html#creating-a-command Example:...

Consider this example: ```php /** * @ParamConverter("param", class="App\MyEntity")) * @Route("/some-route", name="some_name") */ ``` AddRouteAnnotationRector results in: ```php /** * @ParamConverter("param", class="App\MyEntity")) * @Route("/some-route", name="some_name") * @Route("/some-route", name="some_name") */ ``` `@ParamConverter`...

Consider this example: ```yaml route_name: path: /some-path defaults: { _controller: 'MyBundle:Customer:edit' } route_name_2: path: /some-path # same path defaults: { _controller: 'MyBundle:Customer:edit' } # same defaults ``` AddRouteAnnotationRector results in...

This package already has the JMS, so would it be ok to also add a directory for the [FOSRestBundle](https://github.com/FriendsOfSymfony/FOSRestBundle)? The `fosrest` directory would contain the set for the annotations to...

Add 2 fixtures to cover Listener-Classes using AsEventListener-Attributes that are going to be changed to EventSubscriber without any need