diff --git a/src/Caching/Contract/CacheMetaExtensionInterface.php b/src/Caching/Contract/CacheMetaExtensionInterface.php deleted file mode 100644 index fc5baae5942..00000000000 --- a/src/Caching/Contract/CacheMetaExtensionInterface.php +++ /dev/null @@ -1,26 +0,0 @@ - $rectorClass * @param mixed[] $configuration diff --git a/src/Console/Command/ProcessCommand.php b/src/Console/Command/ProcessCommand.php index c8202761d3a..43dbea9fd1b 100644 --- a/src/Console/Command/ProcessCommand.php +++ b/src/Console/Command/ProcessCommand.php @@ -195,7 +195,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int // 4. Deprecations reporter $this->deprecatedRulesReporter->reportDeprecatedRules(); $this->deprecatedRulesReporter->reportDeprecatedSkippedRules(); - $this->deprecatedRulesReporter->reportDeprecatedCacheMetaExtensions(); $this->deprecatedRulesReporter->reportDeprecatedPhpSetsMethods(); $this->deprecatedRulesReporter->reportDeprecatedAttributesSetsArgs(); $this->deprecatedRulesReporter->reportDeprecatedComposerBasedArgs(); diff --git a/src/Console/Command/ValidateConfigCommand.php b/src/Console/Command/ValidateConfigCommand.php index 064cdab6ed2..eff7bf20b4c 100644 --- a/src/Console/Command/ValidateConfigCommand.php +++ b/src/Console/Command/ValidateConfigCommand.php @@ -59,7 +59,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int $issueCount += $this->deprecatedRulesReporter->reportDeprecatedRules(); $issueCount += $this->deprecatedRulesReporter->reportDeprecatedSkippedRules(); - $issueCount += $this->deprecatedRulesReporter->reportDeprecatedCacheMetaExtensions(); $issueCount += $this->deprecatedRulesReporter->reportDeprecatedPhpSetsMethods(); $issueCount += $this->deprecatedRulesReporter->reportDeprecatedAttributesSetsArgs(); $issueCount += $this->deprecatedRulesReporter->reportDeprecatedComposerBasedArgs(); diff --git a/src/Reporting/DeprecatedRulesReporter.php b/src/Reporting/DeprecatedRulesReporter.php index 36d64aee3b0..322d01cb22c 100644 --- a/src/Reporting/DeprecatedRulesReporter.php +++ b/src/Reporting/DeprecatedRulesReporter.php @@ -57,23 +57,6 @@ public function reportDeprecatedSkippedRules(): int return $reportedCount; } - public function reportDeprecatedCacheMetaExtensions(): int - { - /** @var string[] $cacheMetaExtensions */ - $cacheMetaExtensions = SimpleParameterProvider::provideArrayParameter(Option::CACHE_META_EXTENSIONS); - - $reportedCount = 0; - foreach ($cacheMetaExtensions as $cacheMetumExtension) { - $this->symfonyStyle->warning(sprintf( - 'Cache meta extension "%s" is deprecated and no longer applied. It is a niche mechanism, let Rector handle cache on its own. If custom invalidation is needed, handle it in CI in a more generic way, e.g. by clearing the cache directory.', - $cacheMetumExtension - )); - ++$reportedCount; - } - - return $reportedCount; - } - public function reportDeprecatedPhpSetsMethods(): int { /** @var string[] $deprecatedPhpSetsMethods */ diff --git a/tests/Console/Command/ValidateConfigCommandTest.php b/tests/Console/Command/ValidateConfigCommandTest.php index c2b2cf61550..f15f79ba1e4 100644 --- a/tests/Console/Command/ValidateConfigCommandTest.php +++ b/tests/Console/Command/ValidateConfigCommandTest.php @@ -36,7 +36,6 @@ protected function setUp(): void Option::SKIPPED_NON_RECTOR_CLASSES, Option::SKIPPED_RECTOR_RULES, Option::SKIPPED_START_WITH_SHORT_OPEN_TAG_FILES, - Option::CACHE_META_EXTENSIONS, Option::DEPRECATED_PHP_SETS_METHODS, Option::DEPRECATED_ATTRIBUTES_SETS_ARGS, Option::DEPRECATED_COMPOSER_BASED_ARGS,