{"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":"14f79ed817eee762048ab5e4bb207f8d3a1150de5e3196745aa072daf5cd8a07","isBugfix":0.9706,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.965,"feature":0.0033,"refactor":0.0085,"tests_only":0.004,"docs_only":0.0032,"dependency":0.0033,"cleanup":0.0127},"confidence":0.9202},"scope":{"score":0.3764,"probabilities":{"0":0.6684,"1":0.2869,"2":0.0447},"confidence":0.2965},"risk":{"score":0.2159,"probabilities":{"0":0.8439,"1":0.0963,"2":0.0598},"confidence":0.5875},"area":{"choice":"catalog","probabilities":{"catalog":0.8277,"checkout":0.0219,"customer":0.0065,"admin":0.0434,"graphql_api":0.0085,"framework":0.0377,"frontend":0.0142,"other":0.0401},"confidence":0.6465},"securityRelevant":0.0067,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0034,"2.4.0-p1":0.0039,"2.4.1":0.0051,"2.4.1-p1":0.0054,"2.4.2":0.0065,"2.4.2-p1":0.0069,"2.4.2-p2":0.0083,"2.4.3":0.0114,"2.4.3-p1":0.013,"2.4.3-p2":0.0135,"2.4.3-p3":0.0074,"2.4.4":0.0145,"2.4.4-p1":0.011,"2.4.4-p10":0.0065,"2.4.4-p11":0.0078,"2.4.4-p12":0.007,"2.4.4-p13":0.0067,"2.4.4-p14":0.0086,"2.4.4-p15":0.006,"2.4.4-p16":0.0078,"2.4.4-p17":0.0067,"2.4.4-p18":0.0049,"2.4.4-p2":0.0026,"2.4.4-p3":0.0027,"2.4.4-p4":0.003,"2.4.4-p5":0.0034,"2.4.4-p6":0.0043,"2.4.4-p7":0.004,"2.4.4-p8":0.0046,"2.4.4-p9":0.0044,"2.4.5":0.0134,"2.4.5-p1":0.0112,"2.4.5-p10":0.0071,"2.4.5-p11":0.0108,"2.4.5-p12":0.0083,"2.4.5-p13":0.0079,"2.4.5-p14":0.01,"2.4.5-p15":0.0071,"2.4.5-p16":0.0077,"2.4.5-p17":0.0076,"2.4.5-p2":0.0035,"2.4.5-p3":0.0052,"2.4.5-p4":0.0062,"2.4.5-p5":0.0045,"2.4.5-p6":0.0055,"2.4.5-p7":0.006,"2.4.5-p8":0.0052,"2.4.5-p9":0.0047,"2.4.6":0.0216,"2.4.6-p1":0.0187,"2.4.6-p10":0.0076,"2.4.6-p11":0.011,"2.4.6-p12":0.0099,"2.4.6-p13":0.0098,"2.4.6-p14":0.0099,"2.4.6-p15":0.0079,"2.4.6-p2":0.0046,"2.4.6-p3":0.0071,"2.4.6-p4":0.0088,"2.4.6-p5":0.0067,"2.4.6-p6":0.0078,"2.4.6-p7":0.0079,"2.4.6-p8":0.0063,"2.4.6-p9":0.0055,"2.4.7":0.0194,"2.4.7-p1":0.018,"2.4.7-p10":0.0097,"2.4.7-p2":0.0077,"2.4.7-p3":0.0155,"2.4.7-p4":0.0174,"2.4.7-p5":0.0132,"2.4.7-p6":0.0156,"2.4.7-p7":0.0145,"2.4.7-p8":0.0112,"2.4.7-p9":0.0074,"2.4.8":0.0174,"2.4.8-p1":0.017,"2.4.8-p2":0.0167,"2.4.8-p3":0.0132,"2.4.8-p4":0.0145,"2.4.8-p5":0.0131,"2.4.9":0.0171,"unspecified":0.2571},"confidence":0.0632},"backportWorthy":{"score":1.453,"probabilities":{"0":0.1611,"1":0.2248,"2":0.6141},"confidence":0.1804}},"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"}