Skip to content

Commit

Permalink
use more specific node type
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 13, 2024
1 parent 9f1c63a commit fb7f0f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Rules/PHPUnit/AssertEqualsIsDiscouragedRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace PHPStan\Rules\PHPUnit;

use PhpParser\Node;
use PhpParser\Node\Expr\CallLike;
use PhpParser\NodeAbstract;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\Rule;
Expand All @@ -20,7 +21,7 @@ class AssertEqualsIsDiscouragedRule implements Rule

public function getNodeType(): string
{
return NodeAbstract::class;
return CallLike::class;
}

public function processNode(Node $node, Scope $scope): array
Expand Down

0 comments on commit fb7f0f9

Please sign in to comment.