Skip to content

Add Laravel 13 support#153

Merged
freekmurze merged 6 commits intomainfrom
l13-support
Feb 22, 2026
Merged

Add Laravel 13 support#153
freekmurze merged 6 commits intomainfrom
l13-support

Conversation

@freekmurze
Copy link
Member

Summary

  • Add Laravel 13 support
  • Add PHP 8.5 to test matrix
  • Fix coverage warnings
  • Update test dependencies (Pest 4, PHPUnit 12, Testbench 11)

- PHP 8.1 can't install Pest (brianium/paratest requires PHP 8.2+)
- PHPStan can't properly analyze Pest tests using PHPUnit mock APIs
  that differ across PHPUnit versions (10 vs 12)
The tests use getMockBuilder(), setMethodsExcept(), withConsecutive()
and other APIs that were removed or made protected in PHPUnit 12.
Pest 2 supports PHP 8.2-8.5 fine.
- Replace getMockBuilder() with createMock() (PHPUnit 12 compat)
- Remove mockChunkedUploadClient and skipped chunked upload tests
- Replace willReturnOnConsecutiveCalls/throwException with callback
- Drop PHP 8.1/8.2 from CI matrices (Pest 4 requires PHP 8.3+)
Remove <coverage>, <logging>, and deprecated attributes that were
removed in PHPUnit 12 and caused Pest to crash silently.
@freekmurze freekmurze merged commit 22f8041 into main Feb 22, 2026
19 checks passed
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.

2 participants