Skip to content

Commit bd169df

Browse files
committed
register rule to code quality set
1 parent 013a725 commit bd169df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/sets/phpunit-code-quality.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Rector\PHPUnit\CodeQuality\Rector\Class_\SingleMockPropertyTypeRector;
1010
use Rector\PHPUnit\CodeQuality\Rector\Class_\TestWithToDataProviderRector;
1111
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
12+
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\AddInstanceofAssertForNullableInstanceRector;
1213
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\DataProviderArrayItemsNewLinedRector;
1314
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\RemoveEmptyTestMethodRector;
1415
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\ReplaceTestAnnotationWithPrefixedFunctionRector;
@@ -75,6 +76,9 @@
7576
AssertEmptyNullableObjectToAssertInstanceofRector::class,
7677
AssertCountWithZeroToAssertEmptyRector::class,
7778

79+
// avoid call on nullable object
80+
AddInstanceofAssertForNullableInstanceRector::class,
81+
7882
/**
7983
* Improve direct testing of your code, without mock creep. Make it simple, clear and easy to maintain:
8084
*

0 commit comments

Comments
 (0)