withPaths([ __DIR__ . '/packages', ]) ->withSkip([ __DIR__ . '/packages/*/Resources/Private/Assets/*', // Plugins stay list_type plugins until the TYPO3 14 step, which migrates tt_content MigratePluginContentElementAndPluginSubtypesRector::class, MigratePluginContentElementAndPluginSubtypesSwapArgsRector::class, MigratePluginContentElementAndPluginSubtypesTCARector::class, ]) ->withPhpVersion(PhpVersion::PHP_85) ->withPhpSets(php85: true) ->withSets([ Typo3SetList::GENERAL, Typo3LevelSetList::UP_TO_TYPO3_13, ]) ->withPHPStanConfigs([Typo3Option::PHPSTAN_FOR_RECTOR_PATH]) ->withImportNames(true, true, false, true) ->withRules([ ConvertImplicitVariablesToExplicitGlobalsRector::class, ExplicitNullableParamTypeRector::class, ]) ->withConfiguredRule(ExtEmConfRector::class, [ ExtEmConfRector::PHP_VERSION_CONSTRAINT => '8.5.0-8.5.99', ExtEmConfRector::TYPO3_VERSION_CONSTRAINT => '13.4.0-13.4.99', ExtEmConfRector::ADDITIONAL_VALUES_TO_BE_REMOVED => [], ]) ->withConfiguredRule(RemoveTypo3VersionChecksRector::class, [ RemoveTypo3VersionChecksRector::TARGET_VERSION => 13, ]);