diff --git a/composer.json b/composer.json index 6f5e3e8c..9b058be4 100644 --- a/composer.json +++ b/composer.json @@ -3,11 +3,12 @@ "description": "Tolerant PHP-to-AST parser designed for IDE usage scenarios", "type": "library", "require": { - "php": ">=7.2" + "php": "^8.0" }, "require-dev": { "phpunit/phpunit": "^8.5.15", - "phpstan/phpstan": "^1.8" + "phpstan/phpstan": "^1.8", + "rector/rector": "^1.2" }, "license": "MIT", "authors": [ diff --git a/rector.php b/rector.php new file mode 100644 index 00000000..3f213dd6 --- /dev/null +++ b/rector.php @@ -0,0 +1,16 @@ +withPaths([ + __DIR__ . '/src', + __DIR__ . '/tests', + ]) + ->withSkipPath('/tests/cases/*') + ->withRules([ + ExplicitNullableParamTypeRector::class, + ]);