From fbdc97b5621847d6baa967cac7c196a5d2e20505 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Fri, 22 Aug 2025 11:11:25 +0700 Subject: [PATCH] [Alternative 2] Skip assertEquals() on MatchAssertSameExpectedTypeRector --- .../Rector/MethodCall/MatchAssertSameExpectedTypeRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/CodeQuality/Rector/MethodCall/MatchAssertSameExpectedTypeRector.php b/rules/CodeQuality/Rector/MethodCall/MatchAssertSameExpectedTypeRector.php index 575ce818..f7636418 100644 --- a/rules/CodeQuality/Rector/MethodCall/MatchAssertSameExpectedTypeRector.php +++ b/rules/CodeQuality/Rector/MethodCall/MatchAssertSameExpectedTypeRector.php @@ -82,7 +82,7 @@ public function getNodeTypes(): array */ public function refactor(Node $node): ?Node { - if (! $this->testsNodeAnalyzer->isPHPUnitMethodCallNames($node, ['assertSame', 'assertEquals'])) { + if (! $this->testsNodeAnalyzer->isPHPUnitMethodCallNames($node, ['assertSame'])) { return null; }