Skip to content

Commit

Permalink
add support for laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
frasmage committed Feb 12, 2022
1 parent a5ed073 commit 4096540
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/automated-test.yml
Expand Up @@ -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:
Expand Down
35 changes: 18 additions & 17 deletions composer.json
Expand Up @@ -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": {
Expand Down
8 changes: 7 additions & 1 deletion tests/Integration/ImageManipulatorTest.php
Expand Up @@ -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());
Expand Down

0 comments on commit 4096540

Please sign in to comment.