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; }