Quick repo for a custom rector rule.
Copy the rules directory into your own project f.x. into rector/rules and adjust the autoload settings like this:
{
"autoload": {
"psr-4": {
"App\\": "src/",
"Rector\\ParameterAnnotation\\": "rector/rules/ParameterAnnotation",
"Rector\\Tests\\ParameterAnnotation\\": "rector/rules-tests/ParameterAnnotation",
}
},
}