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

Add support for rector 0.18 #21

Merged

Conversation

alexander-schranz
Copy link
Member

No description provided.

@alexander-schranz
Copy link
Member Author

The failing test is just a downstream lowest depenendency issue not sure which dependency does make it fail atleast it works if somebody does composer update.

@alexander-schranz alexander-schranz merged commit f351c01 into sulu:main Aug 25, 2023
2 of 3 checks passed
@alexander-schranz alexander-schranz deleted the feature/rector-18-support branch August 25, 2023 10:43
Comment on lines -10 to -22
$services = $rectorConfig->services();

$services->defaults()
->public()
->autowire()
->autoconfigure();

$services->load('Sulu\\Rector\\', __DIR__ . '/../src')
->exclude([__DIR__ . '/../src/{Rector,ValueObject}']);

$rectorConfig->rule(RenameClassNonPhpRector::class);

$services->set(SmartFileSystem::class);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not used in our cases we did not have yet custom services. Rector did switch from symfony to laravel container which requires explicit service definitions now.

@alexander-schranz
Copy link
Member Author

FYI

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

Successfully merging this pull request may close these issues.

1 participant