Skip to content

Align PHP requirement with CI matrix (Copilot feedback)#25

Closed
slashrsm wants to merge 3 commits into
portphp:masterfrom
slashrsm:ci/address-copilot-feedback
Closed

Align PHP requirement with CI matrix (Copilot feedback)#25
slashrsm wants to merge 3 commits into
portphp:masterfrom
slashrsm:ci/address-copilot-feedback

Conversation

@slashrsm

@slashrsm slashrsm commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #24 addressing Copilot review feedback.

  • Raise php requirement from >=5.6.0 to ^8.2 so declared support matches the CI matrix (and does not auto-accept PHP 9+)
  • Validate composer.lock when present; keep --no-check-lock only when missing
  • Prefer composer install when a lockfile is present
  • Include composer.lock in the Actions cache key hash
  • Run Composer with --no-interaction

Test plan

  • CI matrix PHP 8.2–8.5 green
  • Copilot review on latest commit (no blocking comments)

Addresses Copilot review on portphp#24: composer declared php >=5.6 while
CI only exercises 8.2–8.5. Raise the runtime constraint to match tested
versions, and harden composer validate/cache key handling.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns the package’s declared PHP support and CI behavior with the current GitHub Actions test matrix (PHP 8.2–8.5), addressing prior review feedback from #24.

Changes:

  • Raised the Composer PHP platform requirement to >=8.2 to match the CI matrix.
  • Updated CI to validate composer.lock only when it exists, keeping --no-check-lock for repos without a lockfile.
  • Included composer.lock (when present) in the Composer cache key hash to better invalidate caches when dependency state changes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
composer.json Updates declared PHP requirement to >=8.2 to match CI-supported versions.
.github/workflows/checks.yml Improves Composer validation behavior around lockfiles and updates cache key hashing to account for composer.lock when present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Use ^8.2 instead of >=8.2 so Composer does not accept PHP 9+ by default
- Prefer composer install when a lockfile is present

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

- Pass --no-interaction on composer validate/install/update
- Rename validate step to reflect lockfile handling

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@slashrsm

Copy link
Copy Markdown
Contributor Author

Merged to master via git squash (gh OAuth lacks workflow scope for PR merge API).

slashrsm added a commit that referenced this pull request Jul 22, 2026
Raise php to ^8.2, lock-aware composer validate/install, cache key includes lock, --no-interaction.
@slashrsm slashrsm closed this Jul 22, 2026
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