Skip to content

Commit 4ed5d69

Browse files
committed
[rector] Rector fixes
1 parent 507a64b commit 4ed5d69

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

config/sets/phpunit-code-quality.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
declare(strict_types=1);
44

5+
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\NoSetupWithParentCallOverrideRector;
56
use Rector\Config\RectorConfig;
67
use Rector\PHPUnit\CodeQuality\Rector\CallLike\DirectInstanceOverMockArgRector;
78
use Rector\PHPUnit\CodeQuality\Rector\Class_\AddParamTypeFromDependsRector;
@@ -136,6 +137,6 @@
136137
BareCreateMockAssignToDirectUseRector::class,
137138

138139
// readbility
139-
\Rector\PHPUnit\CodeQuality\Rector\ClassMethod\NoSetupWithParentCallOverrideRector::class,
140+
NoSetupWithParentCallOverrideRector::class,
140141
]);
141142
};

rules-tests/CodeQuality/Rector/ClassMethod/NoSetupWithParentCallOverrideRector/config/configured_rule.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
declare(strict_types=1);
44

5+
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\NoSetupWithParentCallOverrideRector;
56
use Rector\Config\RectorConfig;
67

78
return RectorConfig::configure()
8-
->withRules([\Rector\PHPUnit\CodeQuality\Rector\ClassMethod\NoSetupWithParentCallOverrideRector::class]);
9+
->withRules([NoSetupWithParentCallOverrideRector::class]);

rules/CodeQuality/NodeAnalyser/ParentCallDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use PhpParser\Node\Stmt\Expression;
1010
use Rector\NodeNameResolver\NodeNameResolver;
1111

12-
final class ParentCallDetector
12+
final readonly class ParentCallDetector
1313
{
1414
public function __construct(
1515
private NodeNameResolver $nodeNameResolver

0 commit comments

Comments
 (0)