diff --git a/.github/workflows/automated-test.yml b/.github/workflows/automated-test.yml index 2f27b25..ceb5de0 100644 --- a/.github/workflows/automated-test.yml +++ b/.github/workflows/automated-test.yml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: ['7.3', '7.4', '8.0'] + php-versions: ['7.4', '8.0', '8.1'] prefer-lowest: ['','--prefer-lowest'] name: PHP ${{ matrix.php-versions }} ${{ matrix.prefer-lowest }} steps: diff --git a/composer.json b/composer.json index d820664..2f2a671 100644 --- a/composer.json +++ b/composer.json @@ -10,27 +10,28 @@ } ], "require": { - "php": ">=7.3.0", + "php": ">=7.4.0", "ext-fileinfo": "*", - "illuminate/support": ">6.0", - "illuminate/filesystem": ">6.0", - "illuminate/database": ">6.0", - "league/flysystem": "^1.1.4", - "psr/http-message": "^1.0", - "intervention/image": "^2.5", - "guzzlehttp/guzzle": "^6.5|^7.1" + "illuminate/support": "^8.83|^9.0", + "illuminate/filesystem": "^8.83|^9.0", + "illuminate/database": "^8.83|^9.0", + "league/flysystem": "^1.1.4|^2.4.2|^3.0.4", + "psr/http-message": "^1.0.1", + "intervention/image": "^2.7.1", + "guzzlehttp/guzzle": "^6.5.5|^7.4.1", + "symfony/http-foundation": "^5.0.11|^6.0.3" }, "require-dev": { - "orchestra/testbench": "^5.9|^6.6", - "phpunit/phpunit": "^9.5", + "orchestra/testbench": "^6.6|^7.0", + "phpunit/phpunit": "^9.5.13", "mockery/mockery": "^1.4.2", - "vlucas/phpdotenv": "^4.0|^5.0", - "league/flysystem-aws-s3-v3" : "^1.0.23", - "guzzlehttp/promises": "^1.4", - "aws/aws-sdk-php": "^3.166.0", - "php-coveralls/php-coveralls": "^2.4", - "laravel/legacy-factories": "^1.0.4", - "doctrine/dbal": "^2.11" + "vlucas/phpdotenv": "^4.2.2|^5.4.1", + "guzzlehttp/promises": "^1.5.1", + "league/flysystem-aws-s3-v3" : "^1.0.29|2.1.0", + "aws/aws-sdk-php": "^3.166.2", + "php-coveralls/php-coveralls": "^2.5.2", + "laravel/legacy-factories": "^1.3.0", + "doctrine/dbal": "^2.11|^3.0" }, "autoload": { "psr-4": { diff --git a/tests/Integration/ImageManipulatorTest.php b/tests/Integration/ImageManipulatorTest.php index 4084db5..ba9a43e 100644 --- a/tests/Integration/ImageManipulatorTest.php +++ b/tests/Integration/ImageManipulatorTest.php @@ -126,7 +126,13 @@ function (Image $image) { $this->assertEquals('png', $result->extension); $this->assertEquals('image/png', $result->mime_type); $this->assertEquals('image', $result->aggregate_type); - $this->assertEquals(449, $result->size); + $this->assertContains( + $result->size, + [ + 449, // Laravel <=8 + 438 // Laravel 9+ + ] + ); $this->assertEquals('test', $result->variant_name); $this->assertEquals(10, $result->original_media_id); $this->assertTrue($media->fileExists());