Updated Rector to commit ad09d9c37e3e98eff856fcad7c355accad83f6b4

ad09d9c37e make use of autotagInterface() (#5396)
This commit is contained in:
Tomas Votruba 2023-12-26 18:33:36 +00:00
parent ff860915a2
commit 5892f5adb9
2 changed files with 9 additions and 8 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '9cebe922f18a2fd07311eab528dd59a33ff17ba4';
public const PACKAGE_VERSION = 'ad09d9c37e3e98eff856fcad7c355accad83f6b4';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-12-26 19:08:18';
public const RELEASE_DATE = '2023-12-26 18:31:18';
/**
* @var int
*/

View File

@ -262,15 +262,16 @@ final class LazyContainerFactory
$inflectorFactory = new InflectorFactory();
return $inflectorFactory->build();
});
$rectorConfig->tag(ProcessCommand::class, Command::class);
$rectorConfig->tag(WorkerCommand::class, Command::class);
$rectorConfig->tag(SetupCICommand::class, Command::class);
$rectorConfig->tag(ListRulesCommand::class, Command::class);
$rectorConfig->autotagInterface(Command::class);
$rectorConfig->singleton(ProcessCommand::class);
$rectorConfig->singleton(WorkerCommand::class);
$rectorConfig->singleton(SetupCICommand::class);
$rectorConfig->singleton(ListRulesCommand::class);
$rectorConfig->when(ListRulesCommand::class)->needs('$rectors')->giveTagged(RectorInterface::class);
// dev
if (\class_exists(MissingInSetCommand::class)) {
$rectorConfig->tag(MissingInSetCommand::class, Command::class);
$rectorConfig->tag(OutsideAnySetCommand::class, Command::class);
$rectorConfig->singleton(MissingInSetCommand::class);
$rectorConfig->singleton(OutsideAnySetCommand::class);
}
$rectorConfig->alias(TypeParser::class, BetterTypeParser::class);
$rectorConfig->singleton(FileProcessor::class);