aboutsummaryrefslogtreecommitdiff
path: root/rector.php
diff options
context:
space:
mode:
Diffstat (limited to 'rector.php')
-rw-r--r--rector.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/rector.php b/rector.php
new file mode 100644
index 0000000..511d2cf
--- /dev/null
+++ b/rector.php
@@ -0,0 +1,25 @@
+<?php
+
+declare(strict_types=1);
+
+use Rector\Config\RectorConfig;
+use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
+
+return RectorConfig::configure()
+ ->withPaths([
+ __DIR__ . '/app/controllers',
+ __DIR__ . '/cli',
+ __DIR__ . '/config',
+ __DIR__ . '/db',
+ __DIR__ . '/lib',
+ __DIR__ . '/public/*.php',
+ __DIR__ . '/tests',
+ ])
+ ->withSkip([
+ __DIR__ . '/tests/_data',
+ __DIR__ . '/tests/_support',
+ ])
+ ->withPhpVersion(Rector\ValueObject\PhpVersion::PHP_84)
+ ->withRules([
+ ExplicitNullableParamTypeRector::class,
+ ]);