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 | e.g. dev-main | Ref error build https://github.com/rectorphp/rector/actions/runs/10485665712/job/29042254179 ## Expected Behaviour should be working.

bug

# Bug Report error with more complex code... | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | now() | ## Minimal PHP Code Causing Issue code...

bug

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

bug

# Feature Request I want create Rector that import missed imports for doctrine annotations for example: ```diff declare(strict_types=1); +use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity */ class Entity { }...

feature

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

Hi, `SetListInterface` was [deprecated](https://github.com/rectorphp/rector-src/blob/f6844a40e3502c4e0aa8f3bb4add5728bf1a3ef5/src/Set/Contract/SetListInterface.php#L7-L13). ```php /** * @deprecated This interface needs a reflection to load and uses constant links. * Now we changed to services provider architecture that can be...

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

bug

# Bug Report | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | 1.2.5 | RemoveAlwaysTrueIfConditionRector removes a correct if statement. Code is quite ugly. It seems...

bug

# Feature Request Hi, I just started working on PHPStan 2.0 which will come with PHP-Parser 5. These are early days of the development, but you can already require `phpstan/phpstan:^2.0`...

feature

# Bug Report The demo page has broken UI since recently. e.g. https://getrector.com/demo/d70fe11c-3afe-49b0-bb73-96580257f92d ![image](https://github.com/user-attachments/assets/8b843aea-7bd9-44e8-937e-e62c2f0cdeb1) The replacement overlays the original code

bug