rector
rector copied to clipboard
Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Incorrect behavior of AddArgumentDefaultValueRector, ChangeSwitchToMatchRector, RenamePropertyRector
# Bug Report | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code...
# Bug Report This implementation https://github.com/rectorphp/rector-symfony/blob/main/src/Rector/ClassMethod/ResponseReturnTypeControllerActionRector.php is too generic. It adds Response return type without any check - controller action may not return instance of Response because uses kernel.view mechanism...
# Bug Report | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | v0.14.2 | ## Minimal PHP Code Causing Issue ## Expected Behaviour In https://github.com/rectorphp/rector/blob/e3b535f364359c36e4aefe3be5e0cf0b31f56df3/rules/CodeQuality/Rector/Class_/InlineConstructorDefaultToPropertyRector.php the...
Console output contains line number, but json does not. We convert the json output to checkstyle for jenkins, but the issue preview without line number is meh. Thanks.
# Bug Report The default value of `nullable` on `Column` is `false`, so `$bar` and `$baz` below should both be converted the same way, but `$bar` is incorrectly set as...
# Bug Report Hello, My use of rector threw an error, and the error itself asked me to open an issue here. Here are the details: Rector version 0.14.0 ```...
# Bug Report | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | v0.14 | Project/directory with about 30 files (small for testing reasons) Using `$rectorConfig->disableParallel();` is...
``` Since symfony/console 6.1: Relying on the static property $defaultName for setting a command name is deprecated. Add the RectorPrefix202208/Symfony/Component/Console/Attribute/AsCommand attribute to the RectorPrefix202208/Symfony/Component/Console/Command/DumpCompletionCommand class instead. File: .../vendor/rector/rector/vendor/symfony/contracts/Deprecation/function.php on line...
# Feature Request When developing Rector rules I often use `--debug`. Every now and then I get an exception because I make a mistake in my rule. That's expected. But...
# Bug Report | Subject | Details | | :------------- | :--------------------| | Rector version | 1.0.0 | I am trying to convert `config/packages/security.php` file from array based to ConfigBuilder...