From 008b3b3aee0071e730350eb553e5acf349ff23f4 Mon Sep 17 00:00:00 2001 From: Asadujjaman Sagor <52909107+sagordev@users.noreply.github.com> Date: Thu, 7 Sep 2023 04:07:43 +0600 Subject: [PATCH] Fixed implicit conversion Bug in text center align --- Adapter/GD.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adapter/GD.php b/Adapter/GD.php index 34c301c..bd4f60e 100644 --- a/Adapter/GD.php +++ b/Adapter/GD.php @@ -338,7 +338,7 @@ public function write($font, $text, $x = 0, $y = 0, $size = 12, $angle = 0, $col } } - imagettftext($this->resource, $size, $angle, $x, $y, ImageColor::gdAllocate($this->resource, $color), $font, $text); + imagettftext($this->resource, $size, $angle, (int) $x, $y, ImageColor::gdAllocate($this->resource, $color), $font, $text); return $this; }