Skip to content

Warn when target PHP version does not match project requirement#628

Open
HenkPoley wants to merge 1 commit into
php:1.5.xfrom
HenkPoley:codex-warn-target-php-composer-requirement
Open

Warn when target PHP version does not match project requirement#628
HenkPoley wants to merge 1 commit into
php:1.5.xfrom
HenkPoley:codex-warn-target-php-composer-requirement

Conversation

@HenkPoley
Copy link
Copy Markdown

@HenkPoley HenkPoley commented Jun 4, 2026

Just small silly feature. When using install-extensions-for-project command, and your composer.json needs a newer PHP than your target PHP, print a little warning:

Target PHP 8.2 does not satisfy composer.json requirement php:^8.3.

🤔 Maybe it should also check the composer.lock, since it contains a combination of all the package requirements as well.

This is LLM assisted code, Codex with GPT 5.5 Low.

PR submitter checklist

  • I have read CONTRIBUTING.md
  • I discussed this <bug|feature> with the maintainers in #<issue_number> (complete as appropriate)
  • I have added appropriate tests
  • I confirm that I have the right to submit this under the project's open source licence

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.

1 participant