{"data":{"id":"magento2-37362","source":"github-pr","sourceRef":"magento/magento2#37362","title":"Make ImageMagick Adapter compatible with php8 (Implicit conversion from float to int)","pr":{"number":37362,"url":"https://github.com/magento/magento2/pull/37362","author":"Bashev","mergedAt":"2024-12-21T01:10:09Z","mergeCommit":"7546f27a4389f4bc35ef02d724b2c92330ad954e","headCommit":"4ad115dea067fac89f059c677c4ed803f42aa4c5","baseRef":"2.4-develop","diffSha256":"59bd12552e4580bcdae9b7af061e8568c70defcc26c42ac64180bf56ca692b8c"},"issues":[{"number":39402,"url":"https://github.com/magento/magento2/issues/39402","title":"[Issue] Make ImageMagick Adapter compatible with php8 (Implicit conversion from float to int)","labels":["Area: Framework","Component: Framework/Code","Issue: Confirmed","Priority: P2","Progress: done","Reproduced on 2.4.x"],"kind":"pr-derived"}],"fixedIn":"2.4.8","containingTags":["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"],"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":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":[],"components":["magento/framework"],"files":[{"path":"lib/internal/Magento/Framework/Image/Adapter/AbstractAdapter.php","change":"modified","package":"magento/framework"}],"stripped":{"tests":["lib/internal/Magento/Framework/Image/Test/Unit/Adapter/AbstractTest.php","lib/internal/Magento/Framework/Image/Test/Unit/AdapterFactoryTest.php"],"docs":[],"outsideCode":[]},"linesChanged":40,"mergeBatched":false,"excluded":null,"sections":{"description":null,"stepsToReproduce":null,"expectedResult":null,"actualResult":null,"source":null},"signatures":[],"labels":{"area":["Framework"],"component":["Framework/Code"],"priority":"P2","severity":null,"reportedOn":[]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"5e1518ca7758bd7d1924f0d89ffaca47c269c4c07e5d1e27c9fce0a765827d5b","isBugfix":0.9283,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.8682,"feature":0.01,"refactor":0.0294,"tests_only":0.0092,"docs_only":0.0042,"dependency":0.0115,"cleanup":0.0675},"confidence":0.7194},"scope":{"score":0.9015,"probabilities":{"0":0.2517,"1":0.5951,"2":0.1532},"confidence":0.1615},"risk":{"score":0.4083,"probabilities":{"0":0.6212,"1":0.3492,"2":0.0296},"confidence":0.2631},"area":{"choice":"framework","probabilities":{"catalog":0.0192,"checkout":0.0057,"customer":0.0045,"admin":0.016,"graphql_api":0.0055,"framework":0.9161,"frontend":0.0173,"other":0.0157},"confidence":0.8178},"securityRelevant":0.0071,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0042,"2.4.0-p1":0.0053,"2.4.1":0.0058,"2.4.1-p1":0.0051,"2.4.2":0.0087,"2.4.2-p1":0.0087,"2.4.2-p2":0.0086,"2.4.3":0.0122,"2.4.3-p1":0.013,"2.4.3-p2":0.012,"2.4.3-p3":0.0077,"2.4.4":0.0168,"2.4.4-p1":0.0116,"2.4.4-p10":0.0071,"2.4.4-p11":0.008,"2.4.4-p12":0.0077,"2.4.4-p13":0.0077,"2.4.4-p14":0.0103,"2.4.4-p15":0.008,"2.4.4-p16":0.0091,"2.4.4-p17":0.0084,"2.4.4-p18":0.0086,"2.4.4-p2":0.0031,"2.4.4-p3":0.0032,"2.4.4-p4":0.0039,"2.4.4-p5":0.0042,"2.4.4-p6":0.0053,"2.4.4-p7":0.0051,"2.4.4-p8":0.0067,"2.4.4-p9":0.0052,"2.4.5":0.0149,"2.4.5-p1":0.0135,"2.4.5-p10":0.0075,"2.4.5-p11":0.0119,"2.4.5-p12":0.0095,"2.4.5-p13":0.0099,"2.4.5-p14":0.0107,"2.4.5-p15":0.0071,"2.4.5-p16":0.0097,"2.4.5-p17":0.0082,"2.4.5-p2":0.0039,"2.4.5-p3":0.0057,"2.4.5-p4":0.0064,"2.4.5-p5":0.0063,"2.4.5-p6":0.007,"2.4.5-p7":0.0073,"2.4.5-p8":0.0068,"2.4.5-p9":0.0058,"2.4.6":0.0329,"2.4.6-p1":0.0205,"2.4.6-p10":0.0106,"2.4.6-p11":0.0117,"2.4.6-p12":0.0111,"2.4.6-p13":0.0103,"2.4.6-p14":0.0103,"2.4.6-p15":0.0084,"2.4.6-p2":0.0051,"2.4.6-p3":0.0081,"2.4.6-p4":0.0099,"2.4.6-p5":0.0086,"2.4.6-p6":0.0088,"2.4.6-p7":0.0086,"2.4.6-p8":0.0086,"2.4.6-p9":0.006,"2.4.7":0.0169,"2.4.7-p1":0.0112,"2.4.7-p10":0.0074,"2.4.7-p2":0.0091,"2.4.7-p3":0.015,"2.4.7-p4":0.0177,"2.4.7-p5":0.0122,"2.4.7-p6":0.0185,"2.4.7-p7":0.0153,"2.4.7-p8":0.0125,"2.4.7-p9":0.0071,"2.4.8":0.0188,"2.4.8-p1":0.0162,"2.4.8-p2":0.0172,"2.4.8-p3":0.0158,"2.4.8-p4":0.0148,"2.4.8-p5":0.0143,"2.4.9":0.0172,"unspecified":0.1799},"confidence":0.0308},"backportWorthy":{"score":1.5001,"probabilities":{"0":0.1213,"1":0.2573,"2":0.6214},"confidence":0.2006}},"curated":{"title":"Image adapter throws an error when calculated dimensions are float numbers","description":"When image dimensions are calculated as float numbers, the implicit conversion from float to int on PHP 8 throws an error in the image adapter. The change in AbstractAdapter::_adaptResizeValues casts the frame width and height to float and passes the destination and frame width and height through round().","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-37362 details"}