Skip to content
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

Replace OperatorInterface::getOperator() with OperatorInterface::NAME constant #1541

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Nov 28, 2024

  • Remove the Encode::FlatObject specific encoding by setting null for the operator name.
  • Replace OperatorInterface::getOperator() with OperatorInterface::NAME constant. This doesn't need to be dynamic.

src/Builder/Encoder/OperatorEncoder.php Fixed Show fixed Hide fixed
src/Builder/Type/CombinedFieldQuery.php Dismissed Show dismissed Hide dismissed
src/Builder/Type/QueryObject.php Dismissed Show dismissed Hide dismissed
src/Builder/Type/QueryObject.php Dismissed Show dismissed Hide dismissed
src/Builder/Type/QueryObject.php Dismissed Show dismissed Hide dismissed
src/Builder/Type/QueryObject.php Dismissed Show dismissed Hide dismissed
src/Builder/Type/QueryObject.php Dismissed Show dismissed Hide dismissed
src/Builder/Type/QueryObject.php Dismissed Show dismissed Hide dismissed
@GromNaN GromNaN force-pushed the builder-noNameOperator branch from 000e12d to 961f518 Compare December 2, 2024 21:53
Fix static analysis

Rename noName to wrapObject
@GromNaN GromNaN force-pushed the builder-noNameOperator branch from 961f518 to 2c805b6 Compare December 2, 2024 22:00
@GromNaN GromNaN requested a review from jmikola December 2, 2024 22:02
@GromNaN GromNaN force-pushed the builder-noNameOperator branch from 6848b94 to d7a08af Compare December 3, 2024 09:24
@GromNaN GromNaN requested a review from jmikola December 3, 2024 12:14
Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

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

Code LGTM, but please correct the comment on private function wrap() before merging.

src/Builder/Encoder/OperatorEncoder.php Outdated Show resolved Hide resolved
@GromNaN GromNaN force-pushed the builder-noNameOperator branch from d7a08af to 9586098 Compare December 3, 2024 16:39
@GromNaN GromNaN enabled auto-merge (squash) December 3, 2024 16:40
@GromNaN GromNaN merged commit 373bbc4 into mongodb:v1.x Dec 3, 2024
31 checks passed
@GromNaN GromNaN deleted the builder-noNameOperator branch December 3, 2024 17:13
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.

2 participants