From af325612aa689409011a303f2dfeb7d1c2e16783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 22 Jun 2024 00:36:30 +0200 Subject: [PATCH] Dont replace our test 'GET' strings with a class constant --- rector.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rector.php b/rector.php index 1176b79a..40eee9f7 100644 --- a/rector.php +++ b/rector.php @@ -12,6 +12,7 @@ use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\SetList; use Rector\Symfony\CodeQuality\Rector\Class_\EventListenerToEventSubscriberRector; use Rector\Symfony\CodeQuality\Rector\ClassMethod\ActionSuffixRemoverRector; +use Rector\Symfony\CodeQuality\Rector\MethodCall\LiteralGetToRequestClassConstantRector; use Rector\Symfony\Set\SymfonySetList; use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector; @@ -66,6 +67,8 @@ return static function (RectorConfig $rectorConfig): void { //We declare event listeners via attributes, therefore no need to migrate them to subscribers EventListenerToEventSubscriberRector::class, PreferPHPUnitThisCallRector::class, + //Do not replace 'GET' with class constant, + LiteralGetToRequestClassConstantRector::class, ]); //Do not apply rules to Symfony own files