forked from mirror/Part-DB.Part-DB-server
Dont replace our test 'GET' strings with a class constant
This commit is contained in:
parent
590c2c3b0a
commit
af325612aa
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@ use Rector\Set\ValueObject\LevelSetList;
|
||||||
use Rector\Set\ValueObject\SetList;
|
use Rector\Set\ValueObject\SetList;
|
||||||
use Rector\Symfony\CodeQuality\Rector\Class_\EventListenerToEventSubscriberRector;
|
use Rector\Symfony\CodeQuality\Rector\Class_\EventListenerToEventSubscriberRector;
|
||||||
use Rector\Symfony\CodeQuality\Rector\ClassMethod\ActionSuffixRemoverRector;
|
use Rector\Symfony\CodeQuality\Rector\ClassMethod\ActionSuffixRemoverRector;
|
||||||
|
use Rector\Symfony\CodeQuality\Rector\MethodCall\LiteralGetToRequestClassConstantRector;
|
||||||
use Rector\Symfony\Set\SymfonySetList;
|
use Rector\Symfony\Set\SymfonySetList;
|
||||||
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;
|
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
|
//We declare event listeners via attributes, therefore no need to migrate them to subscribers
|
||||||
EventListenerToEventSubscriberRector::class,
|
EventListenerToEventSubscriberRector::class,
|
||||||
PreferPHPUnitThisCallRector::class,
|
PreferPHPUnitThisCallRector::class,
|
||||||
|
//Do not replace 'GET' with class constant,
|
||||||
|
LiteralGetToRequestClassConstantRector::class,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
//Do not apply rules to Symfony own files
|
//Do not apply rules to Symfony own files
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue