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 | last dev-main | | Installed as | composer dependency | ## Minimal PHP Code...

bug

Rector version: https://github.com/rectorphp/rector/commit/80bfee9246e1b57194c2119558962a2983bd2798 Update: I run this under PHP 8.1. DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES, SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES The InverseJoinColumn ist not converted correct. It is converted to JoinColumn. Before: ``` /** * @ORM\ManyToMany(targetEntity="App\Entity\Liste") * @ORM\JoinTable(name="liste_kontingente",...

bug
Help wanted

AnnotationToAttributeRector for SensioFrameworkExtraBundle's ParamConverter is buggy. This is what happens to me ```diff - @ParamConverter(name="parametername", class="App\Entity\MyEntity", options={"id"="identifier"}) + #[ParamConverter(name: 'parametername', class: 'App\Entity\MyEntity', options: ['id' => 'identifier'])] ``` The Symfony docs...

bug

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

bug

This function was deprecatedin PHP 7.4 * https://github.com/php/php-src/commit/b1cdf06673789cf5c379e7af88c5af98bd06735c This is tested and values are identical 1:1 in both version. ```diff - $value = money_format('%i', $value); + $roundedValue = round($value, 2,...

feature

# Bug Report | Subject | Details | | :------------- | :---------------------------------------------------------------| | Rector version | Rector 0.13.10 | ## Minimal PHP Code Causing Issue https://getrector.org/demo/845e536a-09f7-4566-9d10-194e33ab447c I don't know why...

bug

# Feature Request Document the following caching subjects: * How to override the cache class. * That Rector detects it's running in CI and changes the default disk cache to...

feature

# Bug Report Hello, I want to use rector to reformat my Doctrine Annotations. But when I start rector with --dry-run. it shows me the files and the rules. But...

bug
windows
Help wanted

# Bug Report As soon as a method throws an exception it prevents AddVoidReturnTypeWhereNoReturnRector from adding a void return type to its signature. | Subject | Details | | :-------------...

bug

The source file and entire error log are attached. I'm really just trying to get rid of the old getDoctrine() call. "rector/rector": "^0.13.9" ```php declare(strict_types=1); use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector; use Rector\Config\RectorConfig; use...