diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 44b6e9a..e421913 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] steps: - name: Checkout uses: actions/checkout@v2 diff --git a/.gitignore b/.gitignore index 2d25a98..5072a22 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /nbproject/private/ composer.lock phpunit.xml +.* diff --git a/composer.json b/composer.json index 2614bc1..bc133ad 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "traderinteractive/util": "^3.0||^4.0" }, "require-dev": { - "phpunit/phpunit": ">=6.5", + "phpunit/phpunit": ">=6.5 <11.0", "squizlabs/php_codesniffer": "^3.2" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9654ad0..df7ecc6 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,4 +1,8 @@ + + + + tests diff --git a/src/Image.php b/src/Image.php index 339880e..391051c 100644 --- a/src/Image.php +++ b/src/Image.php @@ -386,7 +386,7 @@ public static function resizeMulti(\Imagick $source, array $boxSizes, array $opt //put image in box $canvas = self::getBackgroundCanvas($source, $color, $blurBackground, $blurValue, $boxWidth, $boxHeight); - if ($canvas->compositeImage($clone, \Imagick::COMPOSITE_ATOP, $targetX, $targetY) !== true) { + if ($canvas->compositeImage($clone, \Imagick::COMPOSITE_ATOP, (int)$targetX, (int)$targetY) !== true) { //cumbersome to test throw new \Exception('Imagick::compositeImage() did not return true');//@codeCoverageIgnore }