-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Static Content Deploy - Get rid of in_array(array_keys($array)) #24904
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
Static Content Deploy - Get rid of in_array(array_keys($array)) #24904
Conversation
Hi @andrey-legayev. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
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.
Hi @andrey-legayev. Thanks for collaboration. It's not API class, so we can add new public method here, this is ok.
Can you please che
Hi @VladimirZaets, thank you for the review. |
@VladimirZaets you didn't finish sentence: Can you please che... |
✔️ QA passed |
Hi @andrey-legayev, thank you for your contribution! |
Description (*)
Performance fix - Replace in_array(array_keys($array)) by isset($array)
Fixed Issues (if relevant)
None
Manual testing scenarios (*)
None
Questions or comments
I understand that adding public methods isn't great, but doing in_array(array_keys($array)) isn't cool from performance point of view.
If it's absolutely not possible to add it to 2.3 then please take it to 2.4.
Contribution checklist (*)