{"data":{"id":"magento2-40894","source":"github-pr","sourceRef":"magento/magento2#40894","title":"Fix PHP 8.5 deprecation when category attribute has 'frontend_input' …","pr":{"number":40894,"url":"https://github.com/magento/magento2/pull/40894","author":"hostep","mergedAt":"2026-09-01T11:41:06Z","mergeCommit":"65d4f4b76186e9e4205ebfdd6fe447097b718afc","headCommit":"993973f973b0ad7e435be8e0e91598646121f113","baseRef":"2.4-develop","diffSha256":"0e09dd51d9c7b0b16422fbbecbee45f64ef179a5fd7eae03faed92c8ad817a09"},"issues":[{"number":40908,"url":"https://github.com/magento/magento2/issues/40908","title":"[Issue] Fix PHP 8.5 deprecation when category attribute has 'frontend_input' …","labels":["Area: Framework","Component: Catalog","Issue: Confirmed","Priority: P1","Progress: PR Created","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x"],"kind":"pr-derived"}],"fixedIn":null,"containingTags":[],"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":"clean"},"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","2.4.9"],"components":["magento/module-catalog"],"files":[{"path":"app/code/Magento/Catalog/Model/Category/DataProvider.php","change":"modified","package":"magento/module-catalog"}],"stripped":{"tests":["app/code/Magento/Catalog/Test/Unit/Model/Category/DataProviderTest.php"],"docs":[],"outsideCode":[]},"linesChanged":2,"mergeBatched":false,"excluded":null,"sections":{"description":"Requires PHP 8.5","stepsToReproduce":"1. Install `smile/elasticsuite` with composer, use version 2.12.0\n2. Run `bin/magento setup:upgrade`\n3. In backoffice, try to open a category\n4. Execute the added unit test using PHP 8.5, it should fail before the fix, and succeed after the fix","expectedResult":null,"actualResult":null,"source":"pr"},"signatures":["Exception (Exception): Deprecated Functionality: Using null as an array offset is deprecated, use an empty string instead in vendor/magento/module-catalog/Model/Category/DataProvider.php"],"labels":{"area":["Framework"],"component":["Catalog"],"priority":"P1","severity":null,"reportedOn":["2.4.x"]},"categories":["Catalog/Product"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"9a814b6717979a778962e80516cb8e6a1d69e66cde7046ef8d95e7c5a23ee8c3","isBugfix":0.9469,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9342,"feature":0.0092,"refactor":0.0208,"tests_only":0.0166,"docs_only":0.0073,"dependency":0.0119},"confidence":0.8486},"scope":{"score":0.4079,"probabilities":{"0":0.6542,"1":0.2838,"2":0.062},"confidence":0.2685},"risk":{"score":0.2051,"probabilities":{"0":0.829,"1":0.137,"2":0.034},"confidence":0.5607},"area":{"choice":"catalog","probabilities":{"catalog":0.7396,"checkout":0.0051,"customer":0.0038,"admin":0.2065,"graphql_api":0.0047,"framework":0.0226,"frontend":0.0107,"other":0.007},"confidence":0.5318},"securityRelevant":0.0067,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0037,"2.4.0-p1":0.0039,"2.4.1":0.0041,"2.4.1-p1":0.0039,"2.4.2":0.0064,"2.4.2-p1":0.0066,"2.4.2-p2":0.0068,"2.4.3":0.0107,"2.4.3-p1":0.0143,"2.4.3-p2":0.0093,"2.4.3-p3":0.0064,"2.4.4":0.0105,"2.4.4-p1":0.0104,"2.4.4-p10":0.0063,"2.4.4-p11":0.0095,"2.4.4-p12":0.0063,"2.4.4-p13":0.0061,"2.4.4-p14":0.0079,"2.4.4-p15":0.0058,"2.4.4-p16":0.0066,"2.4.4-p17":0.0065,"2.4.4-p18":0.0047,"2.4.4-p2":0.0023,"2.4.4-p3":0.0027,"2.4.4-p4":0.003,"2.4.4-p5":0.0031,"2.4.4-p6":0.0037,"2.4.4-p7":0.0039,"2.4.4-p8":0.0045,"2.4.4-p9":0.0044,"2.4.5":0.0116,"2.4.5-p1":0.01,"2.4.5-p10":0.0067,"2.4.5-p11":0.0169,"2.4.5-p12":0.011,"2.4.5-p13":0.0086,"2.4.5-p14":0.0105,"2.4.5-p15":0.0073,"2.4.5-p16":0.0083,"2.4.5-p17":0.0076,"2.4.5-p2":0.0028,"2.4.5-p3":0.0046,"2.4.5-p4":0.0057,"2.4.5-p5":0.0041,"2.4.5-p6":0.0059,"2.4.5-p7":0.0059,"2.4.5-p8":0.0048,"2.4.5-p9":0.0044,"2.4.6":0.0257,"2.4.6-p1":0.0175,"2.4.6-p10":0.0103,"2.4.6-p11":0.0131,"2.4.6-p12":0.0135,"2.4.6-p13":0.0107,"2.4.6-p14":0.0103,"2.4.6-p15":0.0093,"2.4.6-p2":0.0038,"2.4.6-p3":0.007,"2.4.6-p4":0.0071,"2.4.6-p5":0.0061,"2.4.6-p6":0.0084,"2.4.6-p7":0.009,"2.4.6-p8":0.0065,"2.4.6-p9":0.006,"2.4.7":0.0254,"2.4.7-p1":0.0224,"2.4.7-p10":0.0109,"2.4.7-p2":0.0063,"2.4.7-p3":0.0143,"2.4.7-p4":0.0173,"2.4.7-p5":0.0138,"2.4.7-p6":0.0149,"2.4.7-p7":0.0148,"2.4.7-p8":0.0118,"2.4.7-p9":0.0078,"2.4.8":0.023,"2.4.8-p1":0.0229,"2.4.8-p2":0.0211,"2.4.8-p3":0.0198,"2.4.8-p4":0.0172,"2.4.8-p5":0.0137,"2.4.9":0.0208,"unspecified":0.2165},"confidence":0.0456},"backportWorthy":{"score":1.2396,"probabilities":{"0":0.2174,"1":0.3256,"2":0.457},"confidence":0.0432}},"curated":{"title":"Fixes admin category edit crash on PHP 8.5 when frontend_input is null","description":"On PHP 8.5, opening a category in the backoffice will crash with 'Using null as an array offset is deprecated' when a category attribute has a frontend_input defined as null. The fix changes the Category DataProvider in the Catalog module so null is not used as an array offset.","categories":["Catalog/Product"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":{"2.4.8-p5":{"before":"pass","after":"pass","adapted":false,"runAt":"2026-10-06T09:20:34.021Z","releaseCommit":"870a22c63d9d9b68fa3297962e2d5d5841115814","suites":{"unit":{"before":"pass","after":"pass","runAt":"2026-10-06T09:20:34.021Z"}}},"2.4.9":{"before":"pass","after":"pass","adapted":false,"runAt":"2026-10-06T09:20:34.169Z","releaseCommit":"755e34dd689021c5165db9d35ecff74f7dc51527","suites":{"unit":{"before":"pass","after":"pass","runAt":"2026-10-06T09:20:34.169Z"}}},"2.4.7-p10":{"before":"pass","after":"pass","adapted":false,"runAt":"2026-10-06T09:29:35.183Z","releaseCommit":"72561bf80652f57cc642a03e2c9a51d74a285b14","suites":{"unit":{"before":"pass","after":"pass","runAt":"2026-10-06T09:29:35.183Z"}}}}},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-40894 details"}