Skip to content

magento-integration: allow php 8.5 for magento 2.4.9 - #6

Merged
rockwellll merged 1 commit into
mainfrom
release/1.0.4-php-8.5
Nov 16, 2026
Merged

rockwellll merged 1 commit into
mainfrom
release/1.0.4-php-8.5

Conversation

@anyelopetit

Copy link
Copy Markdown
Collaborator

Change

The Adobe Commerce Marketplace rejects the 1.0.3 package when the technical submission is sent:

Failed to validate composer.json - Your extension should require an active PHP version such as 8.5.0, 8.5.1, ... which is supported by the selected Magento edition. Maybe try a format like ~8.5.0

Magento Open Source 2.4.9 (released 2026-05-12) requires PHP 8.5, and the module declared "php": ">=8.2 <8.5". This release allows PHP 8.5 and keeps the versions we already support:

  • composer.json: "php": "~8.2.0||~8.3.0||~8.4.0||~8.5.0", the format the Marketplace validator suggests, and version 1.0.4.
  • etc/module.xml: setup_version 1.0.4, so the uninstall script keeps running (see 1.0.2).
  • README.md: PHP 8.2 to 8.5, tested on Magento 2.4.7 and 2.4.9.
  • CHANGELOG.md: 1.0.4 entry.
  • CI: PHP 8.5 joins the matrix with the lint and isolated checks, like 8.4. Magento 2.4.7 does not run on either, so PHPUnit stays on 8.2 and 8.3.

No runtime code changes. All the Magento dependencies already accept the 2.4.9 module versions (framework 103.0.9, catalog 104.0.9, sales 103.0.9 and the rest).

The Marketplace checks that the listing version matches the package, so 1.0.4 is submitted as a new Marketplace version.

Testing

  • PHP 8.5.11: composer validate, php -l on every source file and the isolated Test/*.test.php checks pass.
  • Magento Open Source 2.4.9 on PHP 8.5.11 with MariaDB 11.4 and OpenSearch 2.19, module in app/code:
    • setup:install, setup:upgrade and setup:di:compile complete without errors;
    • setup:db:status reports all modules up to date;
    • hellotext:diagnose reports Magento 2.4.9 and PHP 8.5.11.

Follow-up

The unit tests do not run on PHPUnit 12, which Magento 2.4.9 ships. They use @dataProvider docblocks (PHPUnit 12 reads only attributes), MockBuilder::addMethods(), withConsecutive(), and a result() helper that clashes with the now-final TestCase::result(). This affects only the test suite, not the module, and will be migrated separately so PHPUnit can also run against 2.4.9.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T02:45:36.425430Z 53c5c8e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@anyelopetit anyelopetit self-assigned this Nov 16, 2026
@rockwellll
rockwellll merged commit 1345486 into main Nov 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants