-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
magento/magento2#22317: PR#22321 fix. #22444
magento/magento2#22317: PR#22321 fix. #22444
Conversation
Hi @p-bystritsky. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@@ -124,8 +123,7 @@ private function getMethodArguments(File $phpcsFile, int $openParenthesisPtr, in | |||
private function getMethodParameters(array $paramDefinitions): array | |||
{ | |||
$paramName = []; | |||
$paramCount = count($paramDefinitions); | |||
for ($i = 0; $i < $paramCount; $i++) { | |||
foreach (array_keys($paramDefinitions) as $i) { |
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.
array_keys
is not a good idea. Why cannot use previous implementation? If there are gaps in keys, use foreach
and ignore values.
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.
Same for all other changed loops.
@p-bystritsky next time please mark PR as Draft/WiP until it is intended to be merged. |
@orlangur updated. |
✔️ QA passed |
Hi @p-bystritsky, thank you for your contribution! |
Description (*)
#22321 was merged before it was finished.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)