Will your custom Adobe Commerce or Magento modules survive 2.4.8?

Home / Blog / Will your custom Adobe Commerce or Magento modules survive 2.4.8?

Adobe CommerceMagentoMage-OSUpgradesIntegrationsPHP 8.4

Short answer: most custom modules can make it to Adobe Commerce 2.4.8, but very few make it there untouched. Last year we took three custom integration modules from an older 2.4 release to 2.4.7 and 2.4.8, and kept them working all the way back to 2.4.4. They connect a store to a gift card platform: gift cards, vouchers and coupons. Below is what broke, what we changed, how we tested it, and the questions we'd ask before touching your own.

If the custom module you're worried about talks to an ERP rather than a gift card platform, the checks are the same. There's a section for you near the end.

What were the modules, and why upgrade them?

Three modules, written by another team a few years earlier for a store on an older 2.4 release:

  • a shared core module
  • a gift card module that talked to the platform over REST
  • a voucher and coupon module that talked to it over SOAP

The gift card platform wanted the same modules to work for any store on a current version, without a custom build for every new merchant. The first store that needed them was a retailer on 2.4.7. So the brief was two things at once: run on the newest release, and stay backwards compatible.

That second part matters. Making a module run on one version is a job. Making it run on five is a bigger one, because every fix has to work on the oldest version too.

Which Magento versions should a custom module support?

Start from Adobe's lifecycle policy, not from memory. When we started, in spring 2025, it put our floor at 2.4.4. So we supported 2.4.4 through 2.4.8.

The window has moved since then. Here it is from Adobe's lifecycle policy (last updated September 18, 2026) and its system requirements, checked in November 2026:

Release PHP, as Adobe lists it Standard support ends Extended support ends
2.4.4 8.1 April 12, 2025 April 14, 2026
2.4.5 8.1 August 12, 2025 August 11, 2026
2.4.6 8.2, 8.1 August 11, 2026 August 31, 2027
2.4.7 8.3, 8.2 May 31, 2027 May 31, 2028
2.4.8 8.4, 8.3 May 31, 2028 not announced
2.4.9 8.5 May 31, 2029 not announced

If we started the same job today, the floor would be 2.4.6, and only because extended support still covers it. Adobe's page offers that extra year to Adobe Commerce customers, so a store on Magento Open Source should read 2.4.7 as its floor.

The PHP column is the part that bites. A module that runs on both 2.4.4 and 2.4.8 has to be valid PHP 8.1 and clean on PHP 8.4. You can't use newer syntax, and you can't keep the old habits that 8.4 now warns about.

What did the audit find?

Before estimating anything, we read all three modules end to end. Here's what came up, in plain words:

  • Admin screens built the old way. Grids and forms used adminhtml blocks, the pattern Magento has been leaving behind in favor of UI components.
  • Zend Framework 1 code. More than 18 references to Zend classes. Adobe has been taking Zend Framework 1 out of the platform, and 2.4.6 removed the parts that had reached end of life. Every Zend class a module leans on is one more thing an update can pull away.
  • The same logic, three times. One job was copied into a console command, a cron job and a controller. Fix it in one place and the other two still have the bug.
  • JavaScript inside templates. Script written straight into .phtml files. On checkout, that runs into Content Security Policy (more below).
  • A notification that only pretended. The gift card email was mocked: a placeholder, not a real send.
  • Two styles of API. One module used the platform's SOAP API and the other its REST API, even though a REST API existed for both.

None of this is unusual. It's what code looks like when it was written for one store, under a deadline, and then worked fine for years. Nobody had a reason to open it until the version jump.

What broke on 2.4.7 and 2.4.8, and how did we fix it?

We split the work into three stages: core compatibility first, then module-by-module fixes, then testing and handover.

PHP types

This was the biggest pile of changes. We added scalar and return types, made nullable types explicit, and swapped old string checks for str_contains.

The nullable change is the one to watch, because 2.4.8 runs on PHP 8.4. PHP 8.4 deprecates a parameter that is nullable only because its default is null:

// Deprecated on PHP 8.4: nullable only because of the default
public function apply(CardRequest $request = null) { /* ... */ }

// Fine on PHP 8.1 through 8.4
public function apply(?CardRequest $request = null) { /* ... */ }

A deprecation won't take a store down. It does fill the logs, and it's how PHP tells you what it plans to remove. The ?Type form already works on PHP 8.1, so one fix covers the whole range. That's the trick with a version range: pick the form that's valid at the bottom and clean at the top.

Our guide to PHP 8.1 covers the language side in more depth.

Zend Framework to Laminas

We replaced the Zend class references with Laminas packages, and moved JSON handling to native PHP. Laminas is Zend Framework's successor, run as its own open-source project, and it's what Magento's own code moved to.

Content Security Policy on checkout

From 2.4.7, Adobe Commerce runs CSP in restrict mode on payment pages, in the storefront and the admin. Adobe's CSP overview puts it simply: "only whitelisted inline scripts are allowed." Script pasted into a template can just stop running on checkout. No error on the page, just a feature that quietly doesn't work and a line in the browser console.

We gave the modules a CSP whitelist and tightened their input validation. If your own modules put script on checkout, move it into a proper JavaScript component or use the nonce support that arrived in 2.4.7. Then test checkout with restrict mode on.

Admin screens and setup data

Admin grids moved to UI component XML with proper column renderers. Setup data went into data patches, so a fresh install and an upgrade end up in the same place on every version.

How did we test across five versions?

  • Two staging stores, one on 2.4.7 and one on 2.4.8, so we could compare them side by side.
  • A test matrix covering 2.4.4, 2.4.5, 2.4.6, 2.4.7 and 2.4.8.
  • Every API call checked against the platform's sandbox. This one paid for itself. One gift card endpoint the code called returned a 404, so we replaced it.
  • PHPUnit unit and regression tests.
  • PHPStan at level 5. Two of the three modules passed. The third was still waiting on one admin image-upload change.
  • A README, a CHANGELOG and a user guide, so the next team doesn't have to start where we did.

Then the modules went to acceptance testing on the staging stores.

One small lesson from that stage: make sure staging can send email and take a sandbox payment before anyone starts clicking. One of the first reports was a test gift card order that stayed pending and sent no email. Separately, our test store needed a Magento patch before it could send mail at all. From the outside, an environment problem looks exactly like a module bug, so rule those out first.

What changed besides compatibility?

The upgrade was also the moment to finish what the old code had only faked. Version 1.0.0 of the gift card module shipped with:

  • a real gift card email, sent from a queue in the background
  • gift card designs managed in the admin
  • personal messages and bulk sending
  • an admin grid for the email queue

Sending from a queue matters more than it sounds. An email is a side job. If a template or a mail server misbehaves, it shouldn't be able to stop a purchase from finishing.

Then the scope question came up, as it usually does. Once testing started, the platform asked for more: several campaigns at once, new redemption rules, gift cards tied to a phone number, a minimum card value. That wasn't upgrade work. It changed how the modules behave, so it went into its own change order with its own test guide.

It's worth making that split on purpose. "Same behavior on a new version" and "new behavior" are two different projects. Mixing them is how an upgrade grows without anyone deciding it should.

What happens after the upgrade?

The code stops moving. The API it talks to doesn't.

Months after handover, gift card purchases started failing. The code checked one field in the platform's response for an error status of 500. The platform had changed its response: errors now came back in a different field, with the platform's own codes. Nothing in the store had changed. We shipped the fix the same day it was reported.

So for any integration module you own:

  • Check the vendor's responses against their sandbox on a schedule, not only at upgrade time.
  • Read responses defensively. An answer the code doesn't recognize should be logged loudly, not quietly treated as fine.
  • Know who owns the module after go-live. "Who do we call when the vendor changes something?" is easier to answer before it happens.

What should you ask before upgrading a store with custom modules?

These are the questions we'd want answered before giving an estimate. They work just as well as questions for whoever does the work for you.

  1. Which modules are custom, and who owns the code? The gift card module we upgraded shipped with its original builder's license file. That decides who can change the code and who you need to ask.
  2. Which versions does it need to run on? Just your store, or a range? A range costs more, because every fix has to work at the bottom of it too.
  3. What PHP versions does that mean? 2.4.8 runs on PHP 8.3 or 8.4. Code written for PHP 7.4 or 8.1 needs a pass.
  4. Does anything still use Zend Framework 1? Search the module for Zend_. Every hit is something to check.
  5. What runs on checkout? Anything with inline script needs a test under 2.4.7's restrict-mode CSP.
  6. Does every API endpoint it calls still exist? Ask for a run against the vendor's sandbox, not just a read of the code.
  7. How will we know it works? Unit tests, static analysis, a test matrix, and a staging store for each version you care about.
  8. Is this an upgrade or a feature change? Write down which. If it's both, split it.
  9. Who watches it afterwards? Vendor APIs change. Somebody should notice before your customers do.

Does this apply to your ERP connector too?

Yes, and that's usually the module with the most riding on it. A connector that moves orders, pricing and stock between Adobe Commerce and Epicor P21, NetSuite, Microsoft Dynamics 365 Business Central or Infor is a custom integration module too. If it was written for your store by a team that has since moved on, it's in the same spot these modules were: older PHP, old framework calls, and an API on the other end that may have moved.

Two extra checks for an ERP connector:

  • Test the data, not just the code. Place test orders through every way orders reach your store, then confirm each one landed in the ERP with the right customer, price and tax.
  • Check the ERP's version too. An ERP upgrade can change its API, just like the gift card platform did.

Our ERP integration readiness checklist walks through the rest of that seam.

Is any of this different on Adobe Commerce, Magento Open Source or Mage-OS?

Not much. The module code is the same on all three, and so are the PHP and Zend changes. Adobe Commerce has extra modules of its own and runs on Adobe's support calendar. Mage-OS is built on Magento Open Source, so check which Magento release your Mage-OS version is based on, and use that row of the table above.

Where to start

If your store is sitting on an older 2.4 because of a couple of custom modules nobody wants to open, you're in very normal company. Read the modules first, set the version floor from Adobe's calendar, and test against the real APIs. The upgrade gets a lot less scary once you know what's in there.

The Adobe Commerce platform page keeps the current support dates, and this kind of work is a regular part of our Adobe Commerce support. If you'd like a second read before your own upgrade, send us the list of what's in your app/code folder. We'll tell you what we'd look at first.