Skip to content

Commit f4e1a46

Browse files
committed
[PHPUnit90] Handle crash on different object without second arg on SpecificAssertContainsWithoutIdentityRector
1 parent b48f998 commit f4e1a46

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/NodeAnalyzer/TestsNodeAnalyzer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public function __construct(
3434

3535
public function isInTestClass(Node $node): bool
3636
{
37-
if ($node instanceof MethodCall && (! $node->var instanceof Variable || ! $this->nodeNameResolver->isNames(
37+
if ($node instanceof MethodCall && (! $node->var instanceof Variable || ! $this->nodeNameResolver->isName(
3838
$node->var,
39-
['this', 'self', 'parent', 'static']
39+
'this'
4040
))) {
4141
$classReflection = $this->reflectionResolver->resolveClassReflectionSourceObject($node);
4242
} else {

0 commit comments

Comments
 (0)