Rector 0.15.0 - Laravel60|70 - ParamTypeDeclarationRector throws error
Closed this issue · 5 comments
sidneyprins commented
Hey,
Using:
- Rector 0.15.0
- Rector-Laravel 0.14.1
I use the set
- LaravelLevelSetList::UP_TO_LARAVEL_90,
When running rector, I get the following error:
- [ERROR] Use specific rules to infer params instead. This rule was split info many small ones.
Seems to refer to the following file in rector-laravel:
- https://github.com/driftingly/rector-laravel/blob/main/config/sets/laravel60.php#L26
- This one might also break: https://github.com/driftingly/rector-laravel/blob/main/config/sets/laravel70.php#L21-L47
I did some small digging, looks like 0.15.0 of rector now throws an error.
Current solution is to use older version of rector, but thought I'd report this.
joelvh commented
@sidneyprins ran into the same issue. Manually skipping the Laravel 6.0 set based on your investigation. Thanks!
joelvh commented
Very nice, thanks @alexhampu!
sidneyprins commented
Note, downgrading Rector to 0.14.x is also a solution, that way you don't have to exclude a set or rule. That's what I've chosen to do until there's a fix
driftingly commented
This should be fixed by #91