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
refactor: Update every
operation.
#242
Conversation
5f22391
to
3c6bb94
Compare
1f59d66
to
10a5693
Compare
Since this pull request has not had any activity within the last 5 days, I have marked it as stale. |
2dccb4c
to
a65e3d0
Compare
3a1501f
to
b2abd1b
Compare
src/Operation/Pluck.php
Outdated
@@ -19,6 +19,7 @@ | |||
use function in_array; | |||
use function is_array; | |||
use function is_object; | |||
use function is_scalar; |
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.
hmm did you add this manually or was it added by php-cs-fixer or something automatically? 🤔
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.
php-cs-fixer :)
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.
cool, I guess it's not set up to import all native functions though, because there are others like array_shift
and property_exists
in this file that are not imported
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.
It has been added in here: PHP-CS-Fixer/PHP-CS-Fixer#6277
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 made a commit in master with these CS changes, so they don't pollute this branch.
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.
ah I see, I've typically used that rule with the all
option rather than only the compiler optimized ones just for consistency, which is why I was surprised 😄
1a23877
to
cbb6258
Compare
e15ee2e
to
898abef
Compare
Make it more flexible and fast.
898abef
to
e013ae0
Compare
Make it more flexible and fast.
This PR:
every
operationTakeWhile
andDropWhile