We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce1d4d6 commit 1b83816Copy full SHA for 1b83816
rules/CodeQuality/NodeAnalyser/AssertMethodAnalyzer.php
@@ -35,11 +35,11 @@ public function detectTestCaseCall(MethodCall|StaticCall $call): bool
35
}
36
37
$methodName = $this->nodeNameResolver->getName($call->name);
38
- if (! str_starts_with((string) $methodName, 'assert') && ! ($call instanceof StaticCall && in_array(
+ if (! str_starts_with((string) $methodName, 'assert') && ! in_array(
39
$methodName,
40
NonAssertNonStaticMethods::ALL,
41
true
42
- ))) {
+ )) {
43
return false;
44
45
0 commit comments