driftingly/rector-laravel

Rector 0.15.0 - Laravel60|70 - ParamTypeDeclarationRector throws error

Closed this issue · 5 comments

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:

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.

@sidneyprins ran into the same issue. Manually skipping the Laravel 6.0 set based on your investigation. Thanks!

image

@joelvh you can skip only the rule, instead of the whole set:

image

joelvh commented

Very nice, thanks @alexhampu!

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

This should be fixed by #91