mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
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\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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue