From b770a16886451be936a6953078903c773f5ecef4 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 30 Aug 2026 00:50:44 +0200 Subject: [PATCH] [dx] mark deprecated prepared sets params and withCacheMetaExtension with @deprecated Claude-Session: https://claude.ai/code/session_01E6e16AvUwS2tQSE1DhLcHG --- src/Configuration/RectorConfigBuilder.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Configuration/RectorConfigBuilder.php b/src/Configuration/RectorConfigBuilder.php index edd972ba24c..c7acf04b58a 100644 --- a/src/Configuration/RectorConfigBuilder.php +++ b/src/Configuration/RectorConfigBuilder.php @@ -640,6 +640,11 @@ public function withPhp74Sets(): self // there is no withPhp80Sets() and above, // as we already use PHP 8.0 and should go with withPhpSets() instead + /** + * @param bool $instanceOf @deprecated Use $codeQuality instead, as most instanceof rules were moved there + * @param bool $if @deprecated Use $codeQuality and $codingStyle instead, as the if rules were moved there or deprecated + * @param bool $earlyReturn @deprecated Use $codeQuality instead, as all early return rules were moved there + */ public function withPreparedSets( bool $deadCode = false, bool $codeQuality = false, @@ -788,6 +793,7 @@ public function withCache( /** * @param class-string $cacheMetaExtensionClass + * @deprecated Niche mechanism, no longer applied. Let Rector handle cache on its own. */ #[Deprecated(message: <<<'TXT' Niche mechanism, no longer applied. Let Rector handle cache on its own. If custom