Skip to content

chore: update PHP version constraint to support 8.1 through 8.4#80

Merged
konradmichalik merged 1 commit intomainfrom
pin-php-version
Oct 27, 2025
Merged

chore: update PHP version constraint to support 8.1 through 8.4#80
konradmichalik merged 1 commit intomainfrom
pin-php-version

Conversation

@konradmichalik
Copy link
Copy Markdown
Contributor

@konradmichalik konradmichalik commented Oct 27, 2025

Summary by CodeRabbit

  • Chores
    • Extended PHP version compatibility to support PHP 8.1 through 8.4, providing greater flexibility across deployment environments.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Oct 27, 2025

Walkthrough

Updated the PHP version constraint in composer.json from a caret constraint (^8.1) to explicit version ranges (~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0), expanding support across PHP 8.x minor versions while maintaining compatibility boundaries.

Changes

Cohort / File(s) Summary
PHP version constraint update
composer.json
Modified require.php from ^8.1 to ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0, explicitly declaring support for PHP 8.1, 8.2, 8.3, and 8.4 minor releases.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

  • Single file modification with a straightforward version constraint update.

Poem

🐰 From eight-dot-one we now expand,
To versions four that grace this land,
PHP support stands tall and wide,
Tilde constraints our trusted guide,
A rabbit's hop to broader skies! 🌟

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "chore: update PHP version constraint to support 8.1 through 8.4" directly and accurately describes the main change in the changeset. The title is fully related to the actual modification, which updates the PHP version constraint in composer.json to broaden compatibility across PHP 8.1 through 8.4. The title is concise, specific, clear, and uses the appropriate "chore:" prefix for a configuration update. A teammate reviewing the commit history would immediately understand that this PR modifies PHP version requirements to support multiple minor versions.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch pin-php-version

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b00b7b3 and 9da01f7.

⛔ Files ignored due to path filters (1)
  • composer.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • composer.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Code Coverage Report
🔇 Additional comments (1)
composer.json (1)

14-14: Constraint narrowing verified as sound.

The PHP version constraint has been intentionally narrowed from ^8.1 (which permits 8.x + future majors) to ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 (explicit pinning to 8.1–8.4 only). This aligns with the PR objective and is well-supported: the CI matrix comprehensively tests all four pinned versions across multiple Symfony and Composer combinations, including explicit PHP 8.4 coverage. Dependencies (Symfony ^5–7, PHPUnit ^10–12) are compatible across all pinned versions. No issues found.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@konradmichalik konradmichalik merged commit 462727d into main Oct 27, 2025
37 of 38 checks passed
@konradmichalik konradmichalik deleted the pin-php-version branch October 27, 2025 08:46
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