Skip to content

Conversation

andrey-legayev
Copy link
Contributor

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 (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@m2-assistant
Copy link

m2-assistant bot commented Oct 7, 2019

Hi @andrey-legayev. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

@VladimirZaets VladimirZaets added the Auto-Tests: Covered All changes in Pull Request is covered by auto-tests label Oct 7, 2019
Copy link
Contributor

@VladimirZaets VladimirZaets left a 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

@magento-engcom-team
Copy link
Contributor

Hi @VladimirZaets, thank you for the review.
ENGCOM-6035 has been created to process this Pull Request

@andrey-legayev
Copy link
Contributor Author

@VladimirZaets you didn't finish sentence: Can you please che...

@engcom-Bravo
Copy link
Contributor

✔️ QA passed

@m2-assistant
Copy link

m2-assistant bot commented Oct 15, 2019

Hi @andrey-legayev, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.4 milestone Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants