Skip to content

Commit b1a8ca0

Browse files
authored
Merge pull request #10 from codeigniter4/rector-phpstan
Rector PHPStan
2 parents a36d6e7 + a379e19 commit b1a8ca0

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)