Skip to content

Use caret constraints for dev dependencies - #11

Merged
veewee merged 1 commit into
mainfrom
dev-deps-caret
Nov 20, 2026
Merged

veewee merged 1 commit into
mainfrom
dev-deps-caret

Conversation

@veewee

@veewee veewee commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

The dev dependencies used tilde constraints. A three-part one like ~3.88.0 only allows 3.88.x, so Dependabot opened a ~3.88.0 || ~3.95.0 PR for every new minor. With ^3.88 the minors are allowed, and Dependabot only opens a PR for a new major. Runtime constraints are unchanged.

Summary by CodeRabbit

  • Chores
    • Updated development tooling version compatibility. There are no changes to app features or behavior.

A tilde with a patch part locks a minor, so Dependabot opened a widening PR for every new minor. With a caret, minors are allowed and only a new major gets a PR.
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Composer development dependency constraints for PHPUnit, Psalm, and PHP-CS-Fixer changed from tilde constraints to caret constraints.

Changes: Development dependency constraints

Layer / File(s) Summary
Update tool version constraints
composer.json
The constraints changed from ~12.3, ~7.12.0, and ~3.94.0 to ^12.3, ^7.12, and ^3.94 for PHPUnit, Psalm, and PHP-CS-Fixer, respectively.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: arnedesmedt

Merge Risk: Minimal · up to bb63d

This change loosens development tool version constraints so that Dependabot no longer opens a PR for every new minor release. Runtime behavior is unchanged, and no merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Use caret constraints for dev dependencies" matches the main change. The composer.json diff changes the development dependency constraints for PHPUnit, Psalm, and PHP-CS-Fixer from narrow p…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Use caret constraints for dev dependencies" matches the main change. The composer.json diff changes the development dependency constraints for PHPUnit, Psalm, and PHP-CS-Fixer from narrow patch-series constraints to caret constraints (^12.3, ^7.12, ^3.94). The PR objectives confirm the intent to replace tilde ranges with caret ranges so Dependabot opens fewer widening PRs. The title is specific, concise, and free of noise.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7b0dcdeb-a7fa-4c77-998f-7a4464d9107a
Commits

Reviewing files that changed from the base of the PR and between 8fd746c and bb63d82.

Files selected for processing: 1

  • composer.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@veewee
veewee merged commit fec5a21 into main Nov 20, 2026
19 checks passed
@veewee
veewee deleted the dev-deps-caret branch November 20, 2026 14:48
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