-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix(*): operator ==
takes Object
parameter
#5443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(*): operator ==
takes Object
parameter
#5443
Conversation
- replace `operator ==` overrides that accept `Object?`
Fixes two lines failing CI (lint: info `unnecessary_overrides`). Since `firebase_core` depends on `firebase_core_platform_interface: ^4.0.0`, and this commit changes a method signature in that dependency, there is now an analysis error: `test/firebase_core_test.dart:114:7 • invalid_implementation_override` A version bump will resolve it. Alternatively, we could skip this commit, and ignore the two `unnecessary_overrides`.
See commit log 015ede5 regarding the analyzer error in CI. Edit: I see this is a job for Melos. I'll have to get familiar with it. :) |
Looks reasonable, thanks! The PR is marked as draft, is there anything else you want to add? |
It should be good to go, thanks! |
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
==
takes Object
parameter
Thanks! |
Description
Replace
operator ==(dynamic other)
withoperator ==(Object other)
everywhere.If this seems reasonable, I'll follow up on the checklist.
Related Issues
Fixes #5288
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).This will ensure a smooth and quick review process. Updating the
pubspec.yaml
and changelogs is not required.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?