Drop PrestaShop <9 backports, require PHP 8.1+ - #339
Open
nenes25 wants to merge 2 commits into
Open
Conversation
nenes25
force-pushed
the
fix/337-ps9-only-compatibility
branch
from
July 3, 2026 06:32
3729aae to
dc8d5d9
Compare
… config, bump version to 3.0.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #337.
The 3.x line only targets PrestaShop 9, so this drops the compatibility code paths kept around for older PS/PHP versions, and refreshes tooling accordingly.
composer.jsonPHP requirement to>=8.1prestashop/php-dev-toolsto^5, pinfriendsofphp/php-cs-fixer^3.2directly (v5 no longer pulls it in transitively) andsymfony/processto^6.4, matching PrestaShop 9's own Symfony version — this also fixes 2 open Dependabot alerts onsymfony/process(moderate + high severity), previously locked at v5.4.35composer.lock, re-ran PHP-CS-Fixer with the updated toolchain (new default ruleset: comment spacing, blank line after<?php, global-namespace FQCN overuseimports for PrestaShop core classes)override/controllers/front/OrderController.php: its only logic was gated behindversion_compare(_PS_VERSION_, '8.2.1', '<')(always false on PS9) and called a hook method already removed in [enhancement]: Remove AuthController override #335. Verified against the real PS9 core (classes/checkout/CheckoutPersonalInformationStep.php) that the modern checkout flow already firesactionSubmitAccountBeforenatively for account creation during checkout, so nothing is lostps_versions_compliancymin from1.7.0.0to9.0.0RegistrationControlleralways exists on PS9+) and the now-redundantphpstan-8.2.3.neon/phpstan-latest.neon(identical to the base config, the script already falls back to it when no version-specific file exists)prestashop/prestashop:9.1.4-8.ximages instead of1.7.8.11/8.2.3Historical
upgrade/*.phpscripts are left behaviorally untouched (only whitespace changes from the CS-Fixer pass) since they document past upgrades for existing installs.Test plan
composer installsucceeds on PHP 8.1actionSubmitAccountBefore, no moreOrderControlleroverride)