Skip to content

Conversation

@mpesari
Copy link

@mpesari mpesari commented Jan 15, 2026

This makes it possible to ignore disallowedLooseComparison issues for certain builtin PHP classes with overloaded comparison operators:

Currently the error message doesn't include types:

Loose comparison via "==" is not allowed.

This adds operands types to make the errors ignorable:

Loose comparison via "==" between DateTime and DateTime is not allowed.

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.

disallowedLooseComparison - allow only DateTime/DateTimeImmutable

1 participant