Skip to content

Commit b48f998

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NodeAnalyzer/TestsNodeAnalyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function isInTestClass(Node $node): bool
3636
{
3737
if ($node instanceof MethodCall && (! $node->var instanceof Variable || ! $this->nodeNameResolver->isNames(
3838
$node->var,
39-
['this', 'self']
39+
['this', 'self', 'parent', 'static']
4040
))) {
4141
$classReflection = $this->reflectionResolver->resolveClassReflectionSourceObject($node);
4242
} else {

0 commit comments

Comments
 (0)