driftingly / rector-laravel

Rector upgrades rules for Laravel
http://getrector.org
MIT License
500 stars 49 forks source link

Support for rector 1.0.0 #177

Closed dominik-eller closed 7 months ago

dominik-eller commented 7 months ago

It seems there is actually no support for the latest rector release (1.0.0).

I am getting some errors.

First the rector.php config structure changed and ->sets() seems to be replaced by ->withSets().

Changing that brings up an error:

[ERROR] Class "Rector\Core\Rector\AbstractRector" not found.

driftingly commented 7 months ago

As part of the update to Rector 0.19 https://github.com/rectorphp/rector/releases/tag/0.19.0 We updated references to Rector\Core\

-use Rector\Core\
+use Rector\

So if you're coming from a previous version you may need to update your code. I have a PR pending for the 1.0 update. I'll need to double check the sets issue.

driftingly commented 7 months ago

Just tagged 1.0.0 with updated documentation to include the withSets changes. Thanks for the heads up!