paths([ __DIR__ . '/src', __DIR__ . '/tests', ]); // Path to phpstan with extensions, that PHPSTan in Rector uses to determine types $rectorConfig->phpstanConfig(__DIR__ . '/phpstan.neon'); $rectorConfig->bootstrapFiles([ __DIR__ . '/vendor/bin/.phpunit/phpunit/vendor/autoload.php', __DIR__ . '/vendor/autoload.php', ]); // Define what rule sets will be applied $rectorConfig->sets([ LevelSetList::UP_TO_PHP_72, ]); // is your PHP version different from the one your refactor to? $rectorConfig->phpVersion(PhpVersion::PHP_72); };