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 828d051
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Rules/PHPUnit/AssertEqualsIsDiscouragedRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace PHPStan\Rules\PHPUnit;

use PhpParser\Node;
use PhpParser\NodeAbstract;
use PhpParser\Node\Expr\CallLike;
use PHPStan\Analyser\Scope;
use PHPStan\Rules\Rule;
use PHPStan\Rules\RuleErrorBuilder;
Expand All @@ -13,14 +13,14 @@
use function strtolower;

/**
* @implements Rule<NodeAbstract>
* @implements Rule<CallLike>
*/
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 828d051

Please sign in to comment.