chore: update test & composer for laravel framework 12 #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrade Description
This update adds full compatibility with PHP 8.3 and Laravel 12.
In addition, the test suite has been refactored to remove deprecated usage of named arguments in Pest’s data providers. This change ensures future compatibility with PHPUnit 11, which will no longer support named arguments in data-driven tests.
Summary of changes:
Require PHP ^8.3
Allow illuminate/* dependencies for Laravel ^10.0 || ^11.0 || ^12.0
Update orchestra/testbench for Laravel 12 compatibility
Upgrade pest, pest-plugin-laravel, and related dev tools to latest compatible versions
Refactor Pest tests:
Replaced deprecated named argument syntax in ->with() calls
Injected model factories via closures to ensure forward compatibility with PHPUnit 11