Skip to content

Commit

Permalink
Fix type error in image-resizing method
Browse files Browse the repository at this point in the history
  • Loading branch information
nekudo committed Feb 2, 2020
1 parent 1f8630a commit ad530ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ protected function resizeImage(
break;
case 'image/png':
imagesavealpha($imgThumb, true);
imagepng($imgThumb, $pathToTarget, round(9 * self::THUMB_QUALITY / 100));
imagepng($imgThumb, $pathToTarget, (int) round(9 * self::THUMB_QUALITY / 100));
break;
case 'image/webp':
imagesavealpha($imgThumb, true);
Expand Down

0 comments on commit ad530ee

Please sign in to comment.