Skip to content

Ignore only the PHP upper bound in composer bin hooks - #41

Merged
koriym merged 1 commit into
1.xfrom
bin-hooks-php-plus
Nov 24, 2026
Merged

koriym merged 1 commit into
1.xfrom
bin-hooks-php-plus

Conversation

@koriym

@koriym koriym commented Nov 24, 2026

Copy link
Copy Markdown
Member

Use --ignore-platform-req=php+ in the post-install-cmd / post-update-cmd bin hooks.
php ignored the PHP lower bound too, so vendor-bin tools could resolve to versions requiring a newer PHP (e.g. Symfony 8 on PHP 8.3).
php+ ignores only the upper bound, so newer PHP (8.6) still installs.
Verified locally: PHP 8.3 install + phpmd/phpstan/psalm/phpcs start; PHP 8.4 install + composer cs.

--ignore-platform-req=php also ignored the lower bound, so vendor-bin
tools resolved to versions that need a newer PHP than the one running.
php+ keeps the lower bound and still allows newer PHP versions.
@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (5bb37a6) to head (4db7732).

Additional details and impacted files
@@             Coverage Diff             @@
##                 1.x       #41   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity        38        38           
===========================================
  Files             24        24           
  Lines             90        90           
===========================================
  Hits              90        90           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@koriym
koriym merged commit 081a946 into 1.x Nov 24, 2026
33 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.

1 participant