rectorphp / rector

Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
https://getrector.com
MIT License
8.71k stars 687 forks source link

The `Rector\Php80\Rector\Class_\AnnotationToAttributeRector` rule requires configuration #8462

Closed OskarStark closed 9 months ago

OskarStark commented 9 months ago

Bug Report

Subject Details
Rector version e.g. v0.19.7
[ERROR] Could not process "/Users/oskar.stark/dev/datana/**/migrations/Version20210701180837.php" file, due to:
         "System error: "The "Rector\Php80\Rector\Class_\AnnotationToAttributeRector" rule requires configuration."

Minimal PHP Code Causing Issue

Not able to reproduce plus no info in the rules overview HOW to configure the rule

samsonasik commented 9 months ago

You can see example at

https://github.com/rectorphp/rector-src/blob/main/rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/config/configured_rule.php