Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for rector 1.0.0 #177

Closed
dominik-eller opened this issue Feb 6, 2024 · 2 comments
Closed

Support for rector 1.0.0 #177

dominik-eller opened this issue Feb 6, 2024 · 2 comments

Comments

@dominik-eller
Copy link

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
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants