Keep commerce compatible with PHP 7.3 or 7.4?

Created on 12 April 2023, over 1 year ago
Updated 13 April 2023, over 1 year ago

Hello,
I have tried to upgrade from commerce 2.33 to 2.35 and I see I cannot upgrade to 2.35 unless I have PHP 8...
In my company, upgrading PHP version from 7.4 to 8.x requires a whole server migration. Which can be tricky and risky especially on an eCommerce website... so we won't be able to do so until the end of the year.
Would it be possible to keep Commerce compatible with PHP 7.3 as long as it remains compatible with D9?
Thank you
Nicolas

📌 Task
Status

Closed: won't fix

Version

2.35

Component

Developer experience

Created by

🇫🇷France nicolas bouteille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @nicolas bouteille
  • Status changed to Closed: won't fix over 1 year ago
  • 🇮🇱Israel jsacksick

    Hi Nicolas,

    PHP7 Is end of life, no longer supported... So it's highly recommended for you to migrate to PHP8 (See https://php.watch/news/2021/11/php7-eol).

    Keeping Commerce compatible with PHP7 means we're basically "stuck" in many different ways (can't upgrade libraries such as commerceguys/intl, harder to be compatible with D10 etc...)
    For maintenance reasons, it was just easier for me to drop PHP7 compatibility.

    Going back would just create an additional maintenance burden for me since I'd need to review / revert / adapt all the changes that happen since we required PHP8 minimum (and I don't really have time to spare for that TBH).

    An alternative would have been to drop PHP7 compatibility in a 3.x branch, but that also meant maintaining 2 branches for several months, which again, involves additional work. I'm guessing if you can wait several months before upgrading PHP8, you should be fine running 2.33 for several more months.

  • 🇫🇷France nicolas bouteille

    I was afraid you'd say that but I understand. Thank you for your quick reply :)

Production build 0.71.5 2024