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

# Bug Report | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | Rector 0.14.2 | I am not sure if this is a bug or a...

bug

# Bug Report | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code...

bug
easy pick

# Bug Report | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code...

bug

# Bug Report | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code...

bug

# Bug Report Hi, I'm expecting here that mysql_query gets renamed mysqli_query and the parameters swapped. However all that's happening is the first parameter is deleted and the function isn't...

bug

# Feature Request Just like https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#countarraytoemptyarraycomparisonrector i think it would be good performance to change `empty()` function call on array values to `[]` check example: ## Diff ```diff $array =...

feature

# Question As of today there's [alpha 1 of nikic/php-parser 5.0](https://github.com/nikic/PHP-Parser/releases/tag/v5.0.0alpha1). PHP-Parser is the single most important foundation building block of PHPStan which Rector is dependent upon. I wrote my...

# Feature Request | Subject | Details | | :------------- | :--------------------| | Rector version | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code...

feature

Hello, after I'm running `vendor/bin/rector process src --dry-run` it returns an error Could not resolve argument "Rector\Config\RectorConfig $rectorConfig"

bug

[ERROR] Could not process "/Users/lasselarsen/Development/wp_sites/testsite1/wordpress/wp-content/plugins/wp-filebase-8/extras/getid3/get id3.php" file, due to: "System error: "PHPStan\Type\Constant\ConstantIntegerType::__construct(): Argument #1 ($value) must be of type int, string given, called in phar://vendor/rector/rector/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/InitializerExprTypeResolver.php: 106" Run Rector with "--debug"...

bug