From a5fa45121a43b8dfe4e5f6ba698272d016e9efb7 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 10 Jun 2021 14:06:40 +0545 Subject: [PATCH] fix param type --- src/Image/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Image/Image.php b/src/Image/Image.php index 2fb3717..b0f8854 100644 --- a/src/Image/Image.php +++ b/src/Image/Image.php @@ -54,7 +54,7 @@ public function __construct($data) * * @throws \Throwable */ - public function crop(int $width, int $height, int $gravity = Image::GRAVITY_CENTER) + public function crop(int $width, int $height, string $gravity = Image::GRAVITY_CENTER) { $originalAspect = $this->width / $this->height;