{"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":"102b44c6a50ad58b1b9669ce66a6cf1984a85388fafb8b006b34431803f22168","isBugfix":0.9357,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.8769,"feature":0.008,"refactor":0.0136,"tests_only":0.0141,"docs_only":0.0062,"dependency":0.0108,"cleanup":0.0704},"confidence":0.7369},"scope":{"score":0.4626,"probabilities":{"0":0.6104,"1":0.3165,"2":0.0731},"confidence":0.2172},"risk":{"score":0.2279,"probabilities":{"0":0.8096,"1":0.1529,"2":0.0375},"confidence":0.5203},"area":{"choice":"catalog","probabilities":{"catalog":0.7091,"checkout":0.0053,"customer":0.0042,"admin":0.233,"graphql_api":0.0052,"framework":0.0241,"frontend":0.0118,"other":0.0073},"confidence":0.4948},"securityRelevant":0.0069,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.004,"2.4.0-p1":0.0043,"2.4.1":0.0046,"2.4.1-p1":0.0047,"2.4.2":0.007,"2.4.2-p1":0.0073,"2.4.2-p2":0.0063,"2.4.3":0.0112,"2.4.3-p1":0.0132,"2.4.3-p2":0.009,"2.4.3-p3":0.0065,"2.4.4":0.0112,"2.4.4-p1":0.0092,"2.4.4-p10":0.0067,"2.4.4-p11":0.0088,"2.4.4-p12":0.0067,"2.4.4-p13":0.0069,"2.4.4-p14":0.009,"2.4.4-p15":0.0063,"2.4.4-p16":0.0073,"2.4.4-p17":0.0073,"2.4.4-p18":0.0055,"2.4.4-p2":0.0025,"2.4.4-p3":0.0029,"2.4.4-p4":0.0031,"2.4.4-p5":0.0034,"2.4.4-p6":0.0044,"2.4.4-p7":0.004,"2.4.4-p8":0.005,"2.4.4-p9":0.0042,"2.4.5":0.011,"2.4.5-p1":0.0104,"2.4.5-p10":0.0077,"2.4.5-p11":0.0143,"2.4.5-p12":0.0103,"2.4.5-p13":0.0095,"2.4.5-p14":0.0112,"2.4.5-p15":0.0082,"2.4.5-p16":0.0096,"2.4.5-p17":0.0086,"2.4.5-p2":0.0031,"2.4.5-p3":0.0051,"2.4.5-p4":0.0051,"2.4.5-p5":0.0051,"2.4.5-p6":0.0071,"2.4.5-p7":0.0069,"2.4.5-p8":0.005,"2.4.5-p9":0.0054,"2.4.6":0.0263,"2.4.6-p1":0.0202,"2.4.6-p10":0.0103,"2.4.6-p11":0.0151,"2.4.6-p12":0.013,"2.4.6-p13":0.0107,"2.4.6-p14":0.011,"2.4.6-p15":0.0092,"2.4.6-p2":0.0041,"2.4.6-p3":0.0084,"2.4.6-p4":0.0065,"2.4.6-p5":0.0075,"2.4.6-p6":0.0085,"2.4.6-p7":0.0091,"2.4.6-p8":0.0068,"2.4.6-p9":0.0067,"2.4.7":0.0207,"2.4.7-p1":0.0182,"2.4.7-p10":0.0119,"2.4.7-p2":0.0071,"2.4.7-p3":0.0131,"2.4.7-p4":0.0181,"2.4.7-p5":0.013,"2.4.7-p6":0.0148,"2.4.7-p7":0.0136,"2.4.7-p8":0.0112,"2.4.7-p9":0.0076,"2.4.8":0.0224,"2.4.8-p1":0.0244,"2.4.8-p2":0.0227,"2.4.8-p3":0.0199,"2.4.8-p4":0.0172,"2.4.8-p5":0.0154,"2.4.9":0.0215,"unspecified":0.1977},"confidence":0.0378},"backportWorthy":{"score":1.2187,"probabilities":{"0":0.2345,"1":0.3123,"2":0.4532},"confidence":0.0369}},"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"}