diff --git a/composer.json b/composer.json index 8328af7..77f4b41 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,8 @@ "squizlabs/php_codesniffer": "^3", "phpstan/phpstan": "^1.4", "phpstan/phpstan-phpunit": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1" + "phpstan/phpstan-strict-rules": "^1.1", + "rector/rector": "^1.2" }, "require": { "php": "^7.4|^8.0", diff --git a/rector.php b/rector.php new file mode 100644 index 0000000..391f508 --- /dev/null +++ b/rector.php @@ -0,0 +1,17 @@ +withPaths([ + __DIR__ . '/src', + __DIR__ . '/tests', + ]) + // uncomment to reach your current PHP version + // ->withPhpSets() + ->withTypeCoverageLevel(0) + ->withSets([ + __DIR__ . '/vendor/assoconnect/php-quality-config/src/Rector/rules.php', + ]);