diff --git a/composer.json b/composer.json index 62d70aa..1e1c721 100644 --- a/composer.json +++ b/composer.json @@ -25,6 +25,7 @@ "nextcloud/ocp": "^30.0.2", "roave/security-advisories": "dev-latest", "nextcloud/coding-standard": "^1.3.2", + "nextcloud/rector": "^0.2.1", "rector/rector": "^1.2.10", "vimeo/psalm": "^5.26.1" }, diff --git a/rector.php b/rector.php index 881c2f3..b7d34ea 100644 --- a/rector.php +++ b/rector.php @@ -2,13 +2,18 @@ declare(strict_types=1); +use Nextcloud\Rector\Set\NextcloudSets; use Rector\Config\RectorConfig; return RectorConfig::configure() ->withPaths([ + __DIR__.'/appinfo', __DIR__.'/lib', ]) - ->withPhpSets(php80: true) + ->withPhpSets(php81: true) + ->withSets([ + NextcloudSets::NEXTCLOUD_27, + ]) ->withPreparedSets( deadCode: true, codeQuality: true,