diff --git a/src/Captcha.php b/src/Captcha.php index 8a0ce49..e3fa5ef 100644 --- a/src/Captcha.php +++ b/src/Captcha.php @@ -224,7 +224,7 @@ public function create(string $config = null, bool $api = false): Response $y = $this->fontSize + mt_rand(10, 20); $angle = $this->math ? 0 : mt_rand(-40, 40); - imagettftext($this->im, $this->fontSize, $angle, $x, $y, $this->color, $fontttf, $char); + imagettftext($this->im, $this->fontSize, $angle, (int) $x, (int) $y, $this->color, $fontttf, $char); } ob_start();