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
Enhancement: Implement UnwrapArrayUintersectAssoc mutator #628
Enhancement: Implement UnwrapArrayUintersectAssoc mutator #628
Conversation
|
||
protected function getParameterIndexes(Node $node): \Generator | ||
{ | ||
yield 0; |
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.
Shouldn't it be
yield from \array_slice(
array_keys($node->args),
0,
\count($node->args) - 1
);
as in array_intersect_uassoc
? https://github.com/infection/infection/pull/591/files#diff-476671cc348930680a7c09fe701c7ffaR52
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'm not sure anymore about some of the other mutators, maybe we should adjust them as well?
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.
Do you have any particular mutator in mind?
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’ll take a closer look later!
e346f74
to
589da0b
Compare
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.
Thank you @localheinz
Thank you, @borNfreee! |
This PR
UnwrapArrayUintersectAssoc
mutatorRelated to #514.
💁♂️ Follows the example in #513.