Skip to content

Laravel future proofing#218

Merged
hotmeteor merged 4 commits intomasterfrom
future-proof-laravel
Mar 27, 2026
Merged

Laravel future proofing#218
hotmeteor merged 4 commits intomasterfrom
future-proof-laravel

Conversation

@hotmeteor
Copy link
Copy Markdown
Owner

@hotmeteor hotmeteor commented Mar 27, 2026

Laravel future-proofing

Rather than appending each new Laravel major version to an ever-growing list of constraints, this PR switches to open lower-bound (>=) version constraints so that Laravel 13, 14, and beyond are supported automatically without requiring a composer.json update on every release.

Changes

composer.json

  • laravel/framework: ^10.0 | ^11.0 | ^12.0>=10.0
  • orchestra/testbench: ^8.0|^9.0 | ^10.0>=8.0
  • nunomaduro/collision: ^7.0|^8.0>=7.0
  • larastan/larastan: ^2.8|^3.0>=2.8
  • phpunit/phpunit: ^10.0|^11.0>=10.0

.github/workflows/tests.yml

  • Adds Laravel 13 to the test matrix with orchestra/testbench: 11.*
  • Excludes PHP 8.1 and PHPUnit 10 for Laravel 13 (matching the same pattern as Laravel 11/12)

Why this approach

The alternative (PR #217, generated by Laravel Shift) manually appends ^13.0 to each constraint — but that requires the same update again when Laravel 14 ships. Using >= constraints means the package declares compatibility with all current and future versions from the minimum supported baseline, with CI covering the explicitly tested matrix.

Closes #217

hotmeteor and others added 4 commits March 27, 2026 10:09
…orkflow

Laravel 13 requires PHP ^8.3, so PHP 8.2 must be excluded from the matrix.
The tidy workflow's git-auto-commit-action@v5 requires explicit contents:write
permission to push formatting commits back to PR branches.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
git-auto-commit-action fails with 'invalid reference' on PR events because
actions/checkout defaults to a detached HEAD (merge commit). Checking out
github.head_ref ensures the branch exists locally for the push.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@hotmeteor hotmeteor merged commit d294ed4 into master Mar 27, 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.

1 participant