diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e29f1e1..39d044a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,11 +7,12 @@ on: jobs: pest: - name: Tests (Pest) L${{ matrix.laravel }} + name: Tests (Pest) L${{ matrix.laravel }} I${{ matrix.intervention }} runs-on: ubuntu-latest strategy: matrix: laravel: [10, 11, 12] + intervention: [2, 3] steps: - uses: actions/checkout@v2 @@ -22,7 +23,9 @@ jobs: tools: composer:v2 coverage: none - name: Install composer dependencies - run: composer require "laravel/framework:^${{matrix.laravel}}.0" + run: | + composer require "laravel/framework:^${{matrix.laravel}}.0" + composer require "intervention/image:^${{matrix.intervention}}.0" - name: Run tests run: vendor/bin/pest diff --git a/composer.json b/composer.json index 3c8ef3b..5d9a7d7 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "larastan/larastan": ">=2.4", "pestphp/pest": ">=2.0", "pestphp/pest-plugin-laravel": ">=2.0", - "intervention/image": "^2.7|^3.0" + "intervention/image": "^3.0" }, "extra": { "laravel": { diff --git a/src/Commands/GenerateFaviconsCommand.php b/src/Commands/GenerateFaviconsCommand.php index 75e3ab0..5dfc2f5 100644 --- a/src/Commands/GenerateFaviconsCommand.php +++ b/src/Commands/GenerateFaviconsCommand.php @@ -38,9 +38,9 @@ class GenerateFaviconsCommand extends Command } // Check Intervention Image version - $isV3 = interface_exists('\Intervention\Image\Interfaces\DriverInterface'); + $interventionV3 = interface_exists('\Intervention\Image\Interfaces\DriverInterface'); - if ($isV3) { + if ($interventionV3) { // v3.x implementation $manager = new ImageManager( new \Intervention\Image\Drivers\Imagick\Driver()