Skip to content

Commit 8590dd3

Browse files
committed
enable AddInstanceofAssertForNullableArgumentRector
1 parent 6b72511 commit 8590dd3

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

config/sets/phpunit-code-quality.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Rector\PHPUnit\CodeQuality\Rector\Class_\TestWithToDataProviderRector;
1616
use Rector\PHPUnit\CodeQuality\Rector\Class_\TypeWillReturnCallableArrowFunctionRector;
1717
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
18+
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\AddInstanceofAssertForNullableArgumentRector;
1819
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\AddInstanceofAssertForNullableInstanceRector;
1920
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\BareCreateMockAssignToDirectUseRector;
2021
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\DataProviderArrayItemsNewLinedRector;
@@ -112,7 +113,7 @@
112113
AddInstanceofAssertForNullableInstanceRector::class,
113114

114115
// enable next after testing
115-
// \Rector\PHPUnit\CodeQuality\Rector\ClassMethod\AddInstanceofAssertForNullableArgumentRector::class,
116+
AddInstanceofAssertForNullableArgumentRector::class,
116117

117118
AssertArrayCastedObjectToAssertSameRector::class,
118119

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Rector\PHPUnit\Tests\CodeQuality\Rector\ClassMethod\RemoveStandaloneCreateMockRector\Fixture;
6+
7+
final class SkipAssignedCall extends \PHPUnit\Framework\TestCase
8+
{
9+
public function testSomething(): void
10+
{
11+
$value = $this->createMock('someClass');
12+
}
13+
}

0 commit comments

Comments
 (0)