rector icon indicating copy to clipboard operation
rector copied to clipboard

Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

Results 119 rector issues
Sort by recently updated
recently updated
newest added

Just found this in the Symfony codebase. ![CleanShot 2024-09-19 at 08 01 17@2x](https://github.com/user-attachments/assets/e503cf79-e10e-49a0-b0cf-ad11bafc3199) Not sure it is already done in PHPUNIT_QUALITY Set

feature

# Bug Report Not realy a bug ... | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | e.g. v2.0.5 (invoke `vendor/bin/rector --version`) | I run rector...

bug

# Feature Request https://3v4l.org/GNlaC https://getrector.com/demo/4fb89aa4-219b-4f41-84a3-e3fa2a0cf625 ## Diff ```diff

feature

# Bug Report | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | 1.2.10 | Rector is changing symfony service factory calls and breaking them. ```Uncaught Error:...

bug

# Feature Request Hello ! While working with enums at my job, I did encounter some limitations while trying go from "fake enums" to "real enums". What I call fake...

feature

# Feature Request When variable is always boolean it is unnecessary to run it trough filter_var with FILTER_VALIDATE_BOOLEAN option. ## Diff ```diff function test(bool $isTest): bool { - if (filter_var($isTest,...

feature

Hi Rector team, Following the recent acceptance of the proposal to use snake_case for routes in Symfony, as detailed in this [Symfony documentation pull request](https://github.com/symfony/symfony-docs/pull/20318), I’d like to suggest adding...

feature

``` # vendor/bin/rector --version Rector 2.0.18 ``` Rule affected: Rector\Symfony\Symfony73\Rector\Class_\InvokableCommandInputAttributeRector ``` vendor/bin/rector --debug [info] Sets loaded based on installed packages: * /srv/vendor/rector/rector/vendor/rector/rector-doctrine/config/sets/doctrine-bundle-23.php * /srv/vendor/rector/rector/vendor/rector/rector-doctrine/config/sets/doctrine-bundle-28.php * /srv/vendor/rector/rector/vendor/rector/rector-doctrine/config/sets/doctrine-dbal-40.php * /srv/vendor/rector/rector/vendor/rector/rector-doctrine/config/sets/doctrine-dbal-42.php * /srv/vendor/rector/rector/vendor/rector/rector-doctrine/config/sets/doctrine-orm-300.php...

This should be an optional feature, off by default. When enabled, rules like `AddTypeToConstRector` should run even on final classes. Devs often want to use more such type coverage features...

feature

I'm using Rector 2.0.17, PHP 8.4.7, Symfony 7.3.0 and starting with the last version of rector I'm receiving an error that two Command-classes cannot be processed. I have a couple...