-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Update Filter
operation.
#126
Conversation
BREAKING CHANGE: yes
330bb4f
to
2be47c8
Compare
*/ | ||
static function (Iterator $iterator) use ($callbacks): Iterator { | ||
static function (Iterator $iterator) use ($callbacks): Generator { | ||
// TODO: Find a way to avoid repeating this everywhere. |
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.
I just noticed this pattern in the other operations now that you commented this 😄.
This can't be an operation by itself so where could we put it 🤔. Maybe in AbstractOperation
or on a trait?
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.
Dunno yet, but it's going to be a follow up for sure.
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.
I was going to bring up the fact that we should aim to look at solving some of the TODOs in the codebase 😁
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.
Given the BC break is this going out in 4.2?
All the operations having variadic arguments evaluates as logical
OR
, the filter operation should also follow that rule.BREAKING CHANGE: yes
This PR
Related to #123 and #125