@@ -583,60 +583,6 @@ public function withPhpSets(
583583 return $ this ->addPhpLevelSets ($ pickedPhpVersions [0 ]);
584584 }
585585
586- #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time. ' )]
587- public function withPhp53Sets (): self
588- {
589- return $ this ->reportDeprecatedPhpSetsMethod (__FUNCTION__ );
590- }
591-
592- #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time. ' )]
593- public function withPhp54Sets (): self
594- {
595- return $ this ->reportDeprecatedPhpSetsMethod (__FUNCTION__ );
596- }
597-
598- #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time. ' )]
599- public function withPhp55Sets (): self
600- {
601- return $ this ->reportDeprecatedPhpSetsMethod (__FUNCTION__ );
602- }
603-
604- #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time. ' )]
605- public function withPhp56Sets (): self
606- {
607- return $ this ->reportDeprecatedPhpSetsMethod (__FUNCTION__ );
608- }
609-
610- #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time. ' )]
611- public function withPhp70Sets (): self
612- {
613- return $ this ->reportDeprecatedPhpSetsMethod (__FUNCTION__ );
614- }
615-
616- #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time. ' )]
617- public function withPhp71Sets (): self
618- {
619- return $ this ->reportDeprecatedPhpSetsMethod (__FUNCTION__ );
620- }
621-
622- #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time. ' )]
623- public function withPhp72Sets (): self
624- {
625- return $ this ->reportDeprecatedPhpSetsMethod (__FUNCTION__ );
626- }
627-
628- #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time. ' )]
629- public function withPhp73Sets (): self
630- {
631- return $ this ->reportDeprecatedPhpSetsMethod (__FUNCTION__ );
632- }
633-
634- #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time. ' )]
635- public function withPhp74Sets (): self
636- {
637- return $ this ->reportDeprecatedPhpSetsMethod (__FUNCTION__ );
638- }
639-
640586 // there is no withPhp80Sets() and above,
641587 // as we already use PHP 8.0 and should go with withPhpSets() instead
642588
@@ -1165,13 +1111,6 @@ private function addPhpLevelSets(int $phpVersion): self
11651111 return $ this ;
11661112 }
11671113
1168- private function reportDeprecatedPhpSetsMethod (string $ methodName ): self
1169- {
1170- SimpleParameterProvider ::addParameter (Option::DEPRECATED_PHP_SETS_METHODS , $ methodName );
1171-
1172- return $ this ;
1173- }
1174-
11751114 /**
11761115 * @param array<class-string<RectorInterface>> $availableRules
11771116 */
0 commit comments