Skip to content

Commit a379e19

Browse files
committed
Point Rector to PHPStan config
1 parent a36d6e7 commit a379e19

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Template/rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@
6161
realpath(getcwd()) . '/vendor/codeigniter4/framework/system/Test/bootstrap.php',
6262
]);
6363

64+
if (is_file(__DIR__ . '/phpstan.neon.dist')) {
65+
$parameters->set(Option::PHPSTAN_FOR_RECTOR_PATH, __DIR__ . '/phpstan.neon.dist');
66+
}
67+
6468
// Set the target version for refactoring
6569
$parameters->set(Option::PHP_VERSION_FEATURES, PhpVersion::PHP_74);
6670

0 commit comments

Comments
 (0)