Skip to content

Commit d6752f0

Browse files
committed
rector
1 parent 1de9167 commit d6752f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.rector.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Rector\Php82\Rector as Php82;
1616
use Rector\Php83\Rector as Php83;
1717
use Rector\Php84\Rector as Php84;
18+
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
1819
use Rector\TypeDeclaration\Rector as TypeDeclaration;
1920

2021
try {
@@ -42,6 +43,8 @@
4243
Php80\Class_\ClassPropertyAssignToConstructorPromotionRector::class, # todo: wait for php80
4344
Php80\Class_\StringableForToStringRector::class, # todo: wait for php80
4445
TypeDeclaration\ClassMethod\ReturnNeverTypeRector::class,
46+
# use static methods
47+
PreferPHPUnitThisCallRector::class,
4548
__DIR__ . '/shell/translations.php',
4649
__DIR__ . '/shell/update-copyright.php',
4750
__DIR__ . '/tests/unit/Mage/Reports/Model/Resource/Report/CollectionTest.php',

0 commit comments

Comments
 (0)