-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Issue #35808 PHP8.1 type bugfix #35842
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
Issue #35808 PHP8.1 type bugfix #35842
Conversation
Hi @artskirk. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
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 @artskirk,
Could you please cover your changes with any type of automated tests?
@magento run all tests |
Hello @artskirk, Have you got a chance to check the review comment made by @ihor-sviziev here? Thanks |
@engcom-Hotel I think covering this case would be pretty hard, so I would accept it as is since it's pretty low-risk change. |
@magento run all tests |
@magento run all tests |
Manual testing is not required since this change ensures that $associatedProducts is always an array when used in the foreach loop. Builds are failed, hence moving it to Extended Testing. |
@magento run all tests |
@magento run all tests |
c3ea0bb
into
magento:2.4-develop
Description (*)
There is an issue with types in \Magento\GroupedProduct\Model\Product\Type\Grouped class, in method _prepareProduct. A variable can be set as false, and is then used in a foreach, so I have update it to array type.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Call \Magento\GroupedProduct\Model\Product\Type\Grouped::__prepareProduct method
Expected result
The following issue have to be fixed:
.CRITICAL: Exception: Warning: foreach() argument must be of type array|object, bool given in /var/www/html/vendor/magento/module-grouped-product/Model/Product/Type/Grouped.php on line 391
Questions or comments
Contribution checklist (*)