Skip to content

Commit 58d6d6f

Browse files
authored
fix rector (#1248)
1 parent ddddc36 commit 58d6d6f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rector.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
4848
use Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\AnnotationWithValueToAttributeRector;
4949
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
50+
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertCountWithZeroToAssertEmptyRector;
51+
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertEmptyNullableObjectToAssertInstanceofRector;
5052
use Rector\PHPUnit\Set\PHPUnitSetList;
5153
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
5254
use Rector\Set\ValueObject\LevelSetList;
@@ -139,6 +141,10 @@
139141
__DIR__ . '/src/Authentication/JWT/JWSDecoder.php',
140142
__DIR__ . '/src/Authentication/JWTManager.php',
141143
],
144+
145+
// Ignore some PHPUnit rules
146+
AssertCountWithZeroToAssertEmptyRector::class,
147+
AssertEmptyNullableObjectToAssertInstanceofRector::class,
142148
]);
143149

144150
// auto import fully qualified class names

0 commit comments

Comments
 (0)