Skip to content

Commit

Permalink
Add support for rector 0.18 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored Aug 25, 2023
1 parent 92bc8e6 commit f351c01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"require": {
"php": "^8.1",
"rector/rector": "^0.14.1 || ^0.15 || ^0.16 || ^0.17"
"rector/rector": "^0.17.2 || ^0.18"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.6",
Expand Down
16 changes: 1 addition & 15 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,7 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Core\NonPhpFile\Rector\RenameClassNonPhpRector;
use Symplify\SmartFileSystem\SmartFileSystem;

return static function (RectorConfig $rectorConfig): void {
$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);
// $rectorConfig->singleton(ServiceType::class);
};

0 comments on commit f351c01

Please sign in to comment.