Skip to content

Commit cc5d6f9

Browse files
authored
[dx] Mark deprecated prepared sets params and withCacheMetaExtension with @deprecated (#8415)
1 parent bfee018 commit cc5d6f9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/Configuration/RectorConfigBuilder.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,11 @@ public function withPhp74Sets(): self
640640
// there is no withPhp80Sets() and above,
641641
// as we already use PHP 8.0 and should go with withPhpSets() instead
642642

643+
/**
644+
* @param bool $instanceOf @deprecated Use $codeQuality instead, as most instanceof rules were moved there
645+
* @param bool $if @deprecated Use $codeQuality and $codingStyle instead, as the if rules were moved there or deprecated
646+
* @param bool $earlyReturn @deprecated Use $codeQuality instead, as all early return rules were moved there
647+
*/
643648
public function withPreparedSets(
644649
bool $deadCode = false,
645650
bool $codeQuality = false,
@@ -788,6 +793,7 @@ public function withCache(
788793

789794
/**
790795
* @param class-string $cacheMetaExtensionClass
796+
* @deprecated Niche mechanism, no longer applied. Let Rector handle cache on its own.
791797
*/
792798
#[Deprecated(message: <<<'TXT'
793799
Niche mechanism, no longer applied. Let Rector handle cache on its own. If custom

0 commit comments

Comments
 (0)