Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Oct 30, 2025

refs #249

),
)->identifier('phpunit.assertEquals')
->fixNode($node, static function (CallLike $node) use ($correctName) {
if ($node instanceof Node\Expr\MethodCall) {
Copy link
Contributor Author

@staabm staabm Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since a recent change we have

if (!$node instanceof Node\Expr\MethodCall && ! $node instanceof Node\Expr\StaticCall) {
			return [];
}

at the very top of this rule, therefore we don't need to narrow here again anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant