|
4 | 4 |
|
5 | 5 | namespace Rector\Configuration; |
6 | 6 |
|
| 7 | +use Deprecated; |
7 | 8 | use PhpParser\NodeVisitor; |
8 | 9 | use Rector\Bridge\SetProviderCollector; |
9 | 10 | use Rector\Bridge\SetRectorsResolver; |
@@ -625,73 +626,55 @@ public function withPhpSets( |
625 | 626 | return $this->addPhpLevelSets($pickedPhpVersions[0]); |
626 | 627 | } |
627 | 628 |
|
628 | | - /** |
629 | | - * @deprecated Use "withPhpLevel()" instead, it raises PHP level one rule at a time. |
630 | | - */ |
| 629 | + #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time.')] |
631 | 630 | public function withPhp53Sets(): self |
632 | 631 | { |
633 | 632 | return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__); |
634 | 633 | } |
635 | 634 |
|
636 | | - /** |
637 | | - * @deprecated Use "withPhpLevel()" instead, it raises PHP level one rule at a time. |
638 | | - */ |
| 635 | + #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time.')] |
639 | 636 | public function withPhp54Sets(): self |
640 | 637 | { |
641 | 638 | return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__); |
642 | 639 | } |
643 | 640 |
|
644 | | - /** |
645 | | - * @deprecated Use "withPhpLevel()" instead, it raises PHP level one rule at a time. |
646 | | - */ |
| 641 | + #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time.')] |
647 | 642 | public function withPhp55Sets(): self |
648 | 643 | { |
649 | 644 | return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__); |
650 | 645 | } |
651 | 646 |
|
652 | | - /** |
653 | | - * @deprecated Use "withPhpLevel()" instead, it raises PHP level one rule at a time. |
654 | | - */ |
| 647 | + #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time.')] |
655 | 648 | public function withPhp56Sets(): self |
656 | 649 | { |
657 | 650 | return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__); |
658 | 651 | } |
659 | 652 |
|
660 | | - /** |
661 | | - * @deprecated Use "withPhpLevel()" instead, it raises PHP level one rule at a time. |
662 | | - */ |
| 653 | + #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time.')] |
663 | 654 | public function withPhp70Sets(): self |
664 | 655 | { |
665 | 656 | return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__); |
666 | 657 | } |
667 | 658 |
|
668 | | - /** |
669 | | - * @deprecated Use "withPhpLevel()" instead, it raises PHP level one rule at a time. |
670 | | - */ |
| 659 | + #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time.')] |
671 | 660 | public function withPhp71Sets(): self |
672 | 661 | { |
673 | 662 | return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__); |
674 | 663 | } |
675 | 664 |
|
676 | | - /** |
677 | | - * @deprecated Use "withPhpLevel()" instead, it raises PHP level one rule at a time. |
678 | | - */ |
| 665 | + #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time.')] |
679 | 666 | public function withPhp72Sets(): self |
680 | 667 | { |
681 | 668 | return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__); |
682 | 669 | } |
683 | 670 |
|
684 | | - /** |
685 | | - * @deprecated Use "withPhpLevel()" instead, it raises PHP level one rule at a time. |
686 | | - */ |
| 671 | + #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time.')] |
687 | 672 | public function withPhp73Sets(): self |
688 | 673 | { |
689 | 674 | return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__); |
690 | 675 | } |
691 | 676 |
|
692 | | - /** |
693 | | - * @deprecated Use "withPhpLevel()" instead, it raises PHP level one rule at a time. |
694 | | - */ |
| 677 | + #[Deprecated(message: 'Use "withPhpLevel()" instead, it raises PHP level one rule at a time.')] |
695 | 678 | public function withPhp74Sets(): self |
696 | 679 | { |
697 | 680 | return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__); |
|
0 commit comments