Skip to content

Fix PHP 8.4 execute() return type and add PHP 8.5 / Magento 2.4.9 support#231

Merged
sprankhub merged 2 commits into
firegento:developfrom
gexxx05:fix/php-8.4-execute-return-type-and-8.5-support
May 21, 2026
Merged

Fix PHP 8.4 execute() return type and add PHP 8.5 / Magento 2.4.9 support#231
sprankhub merged 2 commits into
firegento:developfrom
gexxx05:fix/php-8.4-execute-return-type-and-8.5-support

Conversation

@gexxx05

@gexxx05 gexxx05 commented May 19, 2026

Copy link
Copy Markdown
Contributor

Please make sure these boxes are checked before submitting your PR - thank you!

  • Pull request is based against develop branch
  • README.md reflects changes (if applicable)
  • New files contain a license header

Issue

No related issue.

Proposed changes

  • Fix PHP 8.4 fatal in Command/SetupRunCommand::execute(): add int return type
    (PHP 8.4 enforces the tentative return type from Symfony\Console\Command\Command::execute()).
  • Bump composer.json PHP/Magento constraints to include PHP 8.5 and Magento 2.4.9.
  • Extend GitHub Actions integration workflow with PHP 8.4/8.5 and Magento 2.4.9 matrix entries.

@sprankhub

Copy link
Copy Markdown
Member

Thanks for your contribution, @gexxx05! Could you please check the failing workflows?

Without actions/checkout the workspace is empty and the extension
under test cannot be mounted into the Magento installation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@gexxx05

gexxx05 commented May 19, 2026

Copy link
Copy Markdown
Contributor Author

@sprankhub Added the missing actions/checkout@v4 step to the 2.4.8 and 2.4.9 jobs.

Note: the 2.4.5 (and likely 2.4.6/2.4.7) failures are unrelated to this PR — they are caused by new composer-audit security advisories on webonyx/graphql-php 14.11.x, which affect all Magento installations < 2.4.9 regardless of this change. Adding block_insecure: 'false' to the extdn action input would fix that, but I'd consider it out of scope here.

@sprankhub sprankhub merged commit c05ad9c into firegento:develop May 21, 2026
3 of 6 checks passed
@sprankhub

Copy link
Copy Markdown
Member

Thanks for your contribution!

@gexxx05 gexxx05 deleted the fix/php-8.4-execute-return-type-and-8.5-support branch May 22, 2026 06:04
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