Skip to content

Commit 643ba54

Browse files
committed
[ci-review] Rector Rectify
1 parent 863f356 commit 643ba54

1 file changed

Lines changed: 10 additions & 27 deletions

File tree

‎src/Configuration/RectorConfigBuilder.php‎

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\Configuration;
66

7+
use Deprecated;
78
use PhpParser\NodeVisitor;
89
use Rector\Bridge\SetProviderCollector;
910
use Rector\Bridge\SetRectorsResolver;
@@ -625,73 +626,55 @@ public function withPhpSets(
625626
return $this->addPhpLevelSets($pickedPhpVersions[0]);
626627
}
627628

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.')]
631630
public function withPhp53Sets(): self
632631
{
633632
return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__);
634633
}
635634

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.')]
639636
public function withPhp54Sets(): self
640637
{
641638
return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__);
642639
}
643640

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.')]
647642
public function withPhp55Sets(): self
648643
{
649644
return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__);
650645
}
651646

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.')]
655648
public function withPhp56Sets(): self
656649
{
657650
return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__);
658651
}
659652

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.')]
663654
public function withPhp70Sets(): self
664655
{
665656
return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__);
666657
}
667658

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.')]
671660
public function withPhp71Sets(): self
672661
{
673662
return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__);
674663
}
675664

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.')]
679666
public function withPhp72Sets(): self
680667
{
681668
return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__);
682669
}
683670

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.')]
687672
public function withPhp73Sets(): self
688673
{
689674
return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__);
690675
}
691676

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.')]
695678
public function withPhp74Sets(): self
696679
{
697680
return $this->reportDeprecatedPhpSetsMethod(__FUNCTION__);

0 commit comments

Comments
 (0)