-
Notifications
You must be signed in to change notification settings - Fork 10
Modernize codebase with PHP 8.1+ features and expand test coverage #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
7e92a37
Modernize codebase with PHP 8.1+ features and expand test coverage
aarondfrancis e174b26
Ignore
aarondfrancis 211ea57
Fix testbench minimum version for prefer-lowest compatibility
aarondfrancis a4aaf55
Fix testbench minimum version for prefer-lowest compatibility
aarondfrancis 96288b4
Merge and fix testbench version to ^9.5
aarondfrancis 46f1463
Remove nullable type from exceptionIsFlaky method
aarondfrancis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,3 +12,4 @@ node_modules | |
| docs/*.blade.php | ||
| docs/**/*.blade.php | ||
| .phpunit.cache/test-results | ||
| .claude/settings.local.json | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Laravel 10 PHP minimum version requirement
<web_search_result>
Laravel 10 requires PHP 8.1 or greater. (laravel.com)
Citations:
</web_search_result>
Laravel 11 PHP minimum version requirement
<web_search_result>
Laravel 11 requires PHP 8.2 or greater. [1][2]
Sources:
[1] Laravel 11 release notes (official docs).
[2] Laravel 11 upgrade guide (official docs).
</web_search_result>
Laravel 12 PHP minimum version requirement
<web_search_result>
Laravel 12 requires PHP 8.2 or higher (supports PHP 8.2–8.4). [1][2]
Sources:
[1] Laravel 12 release notes (laravel.com).
[2] Laravel News — "Laravel 12 is Now Released".
</web_search_result>
Orchestra Testbench version compatibility Laravel
<web_search_result>
Orchestra Testbench version mapping to Laravel (short):
Install the testbench major that matches your Laravel major (use the ^ version constraint for the recommended minor). [1][2]
Sources: [1] orchestral/testbench-core README (GitHub). [2] Testbench compatibility table (packages/tools / Testbench docs).
</web_search_result>
PHPUnit 10.5 minimum PHP version requirement
<web_search_result>
PHPUnit 10.5 requires PHP >= 8.1. [1] [2]
Sources:
[1] PHPUnit 10.5 Installation manual.
[2] PHPUnit Supported Versions (PHP compatibility table).
</web_search_result>
PHPUnit 11.0 minimum PHP version requirement
<web_search_result>
PHPUnit 11.0 requires PHP 8.2 or later. [1][2]
Sources:
[1] PHPUnit 11 announcement — phpunit.de.
[2] Supported Versions (PHP compatibility) — phpunit.de.
</web_search_result>
Mockery 1.6 minimum PHP version requirement
<web_search_result>
Mockery 1.6 requires PHP >= 7.3. [1]
Sources:
[1] Packagist — mockery/mockery (requires php: >=7.3).
</web_search_result>
The PHP version constraint must be bumped to ^8.2 to support Laravel 11 and 12.
The original review's compatibility analysis contains a critical oversight:
"php": "^8.1"and"illuminate/support": "^10.0|^11.0|^12.0", users on PHP 8.1 attempting to install Laravel 11 or 12 will encounter dependency conflictsRecommended fix: Change
"php": "^8.1"to"php": "^8.2"to ensure proper alignment with Laravel 11/12 requirements and PHPUnit 11.0 compatibility.🤖 Prompt for AI Agents