{"data":{"id":"magento2-39642","source":"github-pr","sourceRef":"magento/magento2#39642","title":"[\\Magento\\ConfigurableProduct\\Model\\Product\\Type\\Configurable] PHP error unoticed","pr":{"number":39642,"url":"https://github.com/magento/magento2/pull/39642","author":"bhennesAdv","mergedAt":"2025-05-19T07:57:46Z","mergeCommit":"709454a4d3bc60c9c522cb5cce84329de713d63f","headCommit":"aed9dcd96541030ad8c1d5b99006ccb93a4baf9a","baseRef":"2.4-develop","diffSha256":"900cf084b788d970b51f08614a18f291b3abe71a89c7433734c9761f2272a7f6"},"issues":[{"number":39641,"url":"https://github.com/magento/magento2/issues/39641","title":"[\\Magento\\ConfigurableProduct\\Model\\Product\\Type\\Configurable] PHP error unoticed","labels":["Area: Catalog","Component: ConfigurableProduct","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x","Triage: Dev.Experience"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","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.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10","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-configurable-product"],"files":[{"path":"app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php","change":"modified","package":"magento/module-configurable-product"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":4,"mergeBatched":false,"excluded":null,"sections":{"description":null,"stepsToReproduce":null,"expectedResult":null,"actualResult":null,"source":null},"signatures":[],"labels":{"area":["Catalog"],"component":["ConfigurableProduct"],"priority":"P2","severity":null,"reportedOn":["2.4.x"]},"categories":["Catalog/Product"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"86f3747547fef729746ff1c422be372331e50db1a70f1dc5530da7ec3c9f24b1","isBugfix":0.9269,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.94,"feature":0.0037,"refactor":0.0431,"tests_only":0.0039,"docs_only":0.005,"dependency":0.0043},"confidence":0.8626},"scope":{"score":0.1827,"probabilities":{"0":0.849,"1":0.1193,"2":0.0317},"confidence":0.604},"risk":{"score":0.1287,"probabilities":{"0":0.9027,"1":0.0659,"2":0.0314},"confidence":0.7304},"area":{"choice":"catalog","probabilities":{"catalog":0.8957,"checkout":0.0103,"customer":0.0068,"admin":0.024,"graphql_api":0.0078,"framework":0.0308,"frontend":0.0105,"other":0.0141},"confidence":0.7763},"securityRelevant":0.0056,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0051,"2.4.0-p1":0.0047,"2.4.1":0.0052,"2.4.1-p1":0.0049,"2.4.2":0.0069,"2.4.2-p1":0.0063,"2.4.2-p2":0.0101,"2.4.3":0.0111,"2.4.3-p1":0.0121,"2.4.3-p2":0.0133,"2.4.3-p3":0.0065,"2.4.4":0.0126,"2.4.4-p1":0.0106,"2.4.4-p10":0.0065,"2.4.4-p11":0.009,"2.4.4-p12":0.0067,"2.4.4-p13":0.0067,"2.4.4-p14":0.0078,"2.4.4-p15":0.0055,"2.4.4-p16":0.0076,"2.4.4-p17":0.006,"2.4.4-p18":0.0052,"2.4.4-p2":0.003,"2.4.4-p3":0.0034,"2.4.4-p4":0.0039,"2.4.4-p5":0.0044,"2.4.4-p6":0.0044,"2.4.4-p7":0.0045,"2.4.4-p8":0.0048,"2.4.4-p9":0.0047,"2.4.5":0.0128,"2.4.5-p1":0.0115,"2.4.5-p10":0.0075,"2.4.5-p11":0.0104,"2.4.5-p12":0.0093,"2.4.5-p13":0.0082,"2.4.5-p14":0.0076,"2.4.5-p15":0.0062,"2.4.5-p16":0.0078,"2.4.5-p17":0.0076,"2.4.5-p2":0.0039,"2.4.5-p3":0.0058,"2.4.5-p4":0.0054,"2.4.5-p5":0.0057,"2.4.5-p6":0.0056,"2.4.5-p7":0.0069,"2.4.5-p8":0.0052,"2.4.5-p9":0.004,"2.4.6":0.0243,"2.4.6-p1":0.0195,"2.4.6-p10":0.0089,"2.4.6-p11":0.0121,"2.4.6-p12":0.0106,"2.4.6-p13":0.01,"2.4.6-p14":0.0107,"2.4.6-p15":0.0094,"2.4.6-p2":0.0055,"2.4.6-p3":0.0087,"2.4.6-p4":0.01,"2.4.6-p5":0.0079,"2.4.6-p6":0.0092,"2.4.6-p7":0.0092,"2.4.6-p8":0.0069,"2.4.6-p9":0.0055,"2.4.7":0.0169,"2.4.7-p1":0.0145,"2.4.7-p10":0.0093,"2.4.7-p2":0.0074,"2.4.7-p3":0.0128,"2.4.7-p4":0.0164,"2.4.7-p5":0.0128,"2.4.7-p6":0.014,"2.4.7-p7":0.0133,"2.4.7-p8":0.009,"2.4.7-p9":0.0063,"2.4.8":0.0164,"2.4.8-p1":0.0172,"2.4.8-p2":0.0193,"2.4.8-p3":0.0141,"2.4.8-p4":0.0131,"2.4.8-p5":0.0124,"2.4.9":0.0173,"unspecified":0.2542},"confidence":0.0616},"backportWorthy":{"score":0.9546,"probabilities":{"0":0.3828,"1":0.2798,"2":0.3374},"confidence":0.008}},"curated":{"title":"Fixes the cache of used product IDs on configurable products","description":"In the configurable product type, getUsedProductIds used $product as the foreach loop variable, so the _cache_instance_product_ids data was set on the last used product, not the given product, and subsequent calls on the same $product object did not use the cache. The loop variable name is now $childProduct.","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-39642 details"}