Skip to content

Commit 1b83816

Browse files
committed
📦 Revert check for static call as unneeded here
As of review comment #482 (comment)
1 parent ce1d4d6 commit 1b83816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/CodeQuality/NodeAnalyser/AssertMethodAnalyzer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ public function detectTestCaseCall(MethodCall|StaticCall $call): bool
3535
}
3636

3737
$methodName = $this->nodeNameResolver->getName($call->name);
38-
if (! str_starts_with((string) $methodName, 'assert') && ! ($call instanceof StaticCall && in_array(
38+
if (! str_starts_with((string) $methodName, 'assert') && ! in_array(
3939
$methodName,
4040
NonAssertNonStaticMethods::ALL,
4141
true
42-
))) {
42+
)) {
4343
return false;
4444
}
4545

0 commit comments

Comments
 (0)