{"data":{"id":"magento2-35842","source":"github-pr","sourceRef":"magento/magento2#35842","title":"PHP8.1 type bugfix","pr":{"number":35842,"url":"https://github.com/magento/magento2/pull/35842","author":"artskirk","mergedAt":"2025-05-19T07:57:46Z","mergeCommit":"c3ea0bb4a88f78e5348a75c987028202ff9fbf4b","headCommit":"fb9f5219cc2033bb062d4306e1241b9a00aaa387","baseRef":"2.4-develop","diffSha256":"cfbd32e685167d5b651742cbc25b0e45cd8113572e7fb7bf6d0ec7589fc090a0"},"issues":[{"number":35808,"url":"https://github.com/magento/magento2/issues/35808","title":"PHP8.1 type bugfix","labels":["Area: Framework","Component: GroupedProduct","Issue: Confirmed","Priority: P2","Progress: PR in progress","Progress: done","Reproduced on 2.4.x","Triage: Dev.Experience"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"conflict","2.4.6-p1":"conflict","2.4.6-p2":"conflict","2.4.6-p3":"conflict","2.4.6-p4":"conflict","2.4.6-p5":"conflict","2.4.6-p6":"conflict","2.4.6-p7":"conflict","2.4.6-p8":"conflict","2.4.6-p9":"conflict","2.4.6-p10":"conflict","2.4.6-p11":"conflict","2.4.6-p12":"conflict","2.4.6-p13":"conflict","2.4.6-p14":"conflict","2.4.6-p15":"conflict","2.4.7":"conflict","2.4.7-p1":"conflict","2.4.7-p2":"conflict","2.4.7-p3":"conflict","2.4.7-p4":"conflict","2.4.7-p5":"conflict","2.4.7-p6":"conflict","2.4.7-p7":"conflict","2.4.7-p8":"conflict","2.4.7-p9":"conflict","2.4.7-p10":"conflict","2.4.8":"clean","2.4.8-p1":"clean","2.4.8-p2":"clean","2.4.8-p3":"clean","2.4.8-p4":"clean","2.4.8-p5":"clean","2.4.9":"conflict"},"affectedVersions":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5"],"components":["magento/module-grouped-product"],"files":[{"path":"app/code/Magento/GroupedProduct/Model/Product/Type/Grouped.php","change":"modified","package":"magento/module-grouped-product"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":6,"mergeBatched":false,"excluded":null,"sections":{"description":null,"stepsToReproduce":null,"expectedResult":null,"actualResult":null,"source":null},"signatures":[".CRITICAL: Exception: Warning: foreach() argument must be of type array|object, bool given"],"labels":{"area":["Framework"],"component":["GroupedProduct"],"priority":"P2","severity":null,"reportedOn":[]},"categories":["Catalog/Product"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"4fccdf0873e3ab496bf02491577c2c56f4b502d0198d9522fa97eeade22a6179","isBugfix":0.9726,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.974,"feature":0.0033,"refactor":0.0115,"tests_only":0.0039,"docs_only":0.0034,"dependency":0.0039},"confidence":0.9387},"scope":{"score":0.3642,"probabilities":{"0":0.6769,"1":0.282,"2":0.0411},"confidence":0.3091},"risk":{"score":0.2014,"probabilities":{"0":0.8537,"1":0.0913,"2":0.055},"confidence":0.6102},"area":{"choice":"catalog","probabilities":{"catalog":0.8345,"checkout":0.0224,"customer":0.0061,"admin":0.0414,"graphql_api":0.0075,"framework":0.0341,"frontend":0.0135,"other":0.0405},"confidence":0.659},"securityRelevant":0.0065,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0032,"2.4.0-p1":0.0038,"2.4.1":0.0049,"2.4.1-p1":0.005,"2.4.2":0.0064,"2.4.2-p1":0.0065,"2.4.2-p2":0.0076,"2.4.3":0.0102,"2.4.3-p1":0.0127,"2.4.3-p2":0.0124,"2.4.3-p3":0.0068,"2.4.4":0.013,"2.4.4-p1":0.0102,"2.4.4-p10":0.0058,"2.4.4-p11":0.0075,"2.4.4-p12":0.0063,"2.4.4-p13":0.0061,"2.4.4-p14":0.008,"2.4.4-p15":0.0058,"2.4.4-p16":0.007,"2.4.4-p17":0.0062,"2.4.4-p18":0.0048,"2.4.4-p2":0.0024,"2.4.4-p3":0.0026,"2.4.4-p4":0.0029,"2.4.4-p5":0.0035,"2.4.4-p6":0.0038,"2.4.4-p7":0.0042,"2.4.4-p8":0.0042,"2.4.4-p9":0.0041,"2.4.5":0.0129,"2.4.5-p1":0.011,"2.4.5-p10":0.0065,"2.4.5-p11":0.0099,"2.4.5-p12":0.0087,"2.4.5-p13":0.0069,"2.4.5-p14":0.0076,"2.4.5-p15":0.0059,"2.4.5-p16":0.0068,"2.4.5-p17":0.0069,"2.4.5-p2":0.0031,"2.4.5-p3":0.0049,"2.4.5-p4":0.0049,"2.4.5-p5":0.0043,"2.4.5-p6":0.0057,"2.4.5-p7":0.006,"2.4.5-p8":0.0047,"2.4.5-p9":0.0041,"2.4.6":0.0219,"2.4.6-p1":0.0166,"2.4.6-p10":0.0077,"2.4.6-p11":0.0102,"2.4.6-p12":0.0085,"2.4.6-p13":0.0094,"2.4.6-p14":0.0089,"2.4.6-p15":0.0073,"2.4.6-p2":0.0044,"2.4.6-p3":0.0075,"2.4.6-p4":0.0086,"2.4.6-p5":0.0065,"2.4.6-p6":0.0073,"2.4.6-p7":0.0076,"2.4.6-p8":0.0059,"2.4.6-p9":0.0052,"2.4.7":0.0175,"2.4.7-p1":0.0142,"2.4.7-p10":0.0073,"2.4.7-p2":0.0073,"2.4.7-p3":0.0139,"2.4.7-p4":0.016,"2.4.7-p5":0.0128,"2.4.7-p6":0.0132,"2.4.7-p7":0.0134,"2.4.7-p8":0.0104,"2.4.7-p9":0.0069,"2.4.8":0.014,"2.4.8-p1":0.0142,"2.4.8-p2":0.0136,"2.4.8-p3":0.0129,"2.4.8-p4":0.0132,"2.4.8-p5":0.0121,"2.4.9":0.0152,"unspecified":0.3197},"confidence":0.0983},"backportWorthy":{"score":1.4629,"probabilities":{"0":0.1571,"1":0.2229,"2":0.62},"confidence":0.1881}},"curated":{"title":"Fixes the foreach warning in the grouped product _prepareProduct method","description":"In the GroupedProduct Grouped type class, method _prepareProduct, a variable can be set as false and is then used in a foreach, which logs foreach() argument must be of type array|object, bool given. The variable is now set to an empty array [] and not false.","categories":["Catalog/Product"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-35842 details"}