rector
rector copied to clipboard
Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Just found this in the Symfony codebase.  Not sure it is already done in PHPUNIT_QUALITY Set
# Bug Report Not realy a bug ... | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | e.g. v2.0.5 (invoke `vendor/bin/rector --version`) | I run rector...
# Feature Request https://3v4l.org/GNlaC https://getrector.com/demo/4fb89aa4-219b-4f41-84a3-e3fa2a0cf625 ## Diff ```diff
# Bug Report | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | 1.2.10 | Rector is changing symfony service factory calls and breaking them. ```Uncaught Error:...
# 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 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,...
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...
``` # 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...
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...