fix(ci): allow pest-plugin-livewire v3 for PHP 8.2 compatibility#17
Open
bajramemini wants to merge 4 commits intomainfrom
Open
fix(ci): allow pest-plugin-livewire v3 for PHP 8.2 compatibility#17bajramemini wants to merge 4 commits intomainfrom
bajramemini wants to merge 4 commits intomainfrom
Conversation
pest-plugin-livewire v4.0 requires PHP ^8.3, breaking CI for PHP 8.2. This change allows v3.0 which supports PHP ^8.1 while still allowing v4.0 for PHP 8.3+ environments.
- Add intervention/image-laravel for v3 Laravel service provider - Update TestCase to detect and use correct service provider class - v2: Intervention\Image\ImageServiceProvider - v3: Intervention\Image\Laravel\ServiceProvider This fixes the 'Class ImageServiceProvider not found' error in PHP 8.2 CI.
Contributor
Author
CI UpdateThe TestCase service provider fix works (530 tests pass), but 5 tests in use Intervention\Image\Facades\Image;
// ...
$img = Image::canvas(2000, 2000, '#ff0000');In Intervention v3, this moved to Two options:
Let me know which direction you prefer and I can update the PR. |
added 2 commits
January 30, 2026 03:01
Tests use v2 Facade API (Image::canvas, encode) which doesn't exist in v3. Pin to ^2.7 only until tests are migrated to v3 API. Removes intervention/image-laravel from require-dev as it's v3-only.
…ness The test was using Faker-generated names which can contain special characters (like apostrophes) that get HTML-escaped differently, causing intermittent test failures.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
CI is failing on PHP 8.2 due to two issues:
pestphp/pest-plugin-livewire ^4.0requires PHP ^8.3Solution
Pest Plugin Fix
Allow both v3 and v4 of the plugin:
Intervention Image v3 Compatibility
intervention/image-laravelto require-dev for v3 supportIntervention\Image\ImageServiceProviderIntervention\Image\Laravel\ServiceProviderCI
This should fix the run-tests workflow for PHP 8.2.