From 4cfd34585f1f1aa1a147b790e83ba925dea17051 Mon Sep 17 00:00:00 2001 From: alkl58 Date: Fri, 16 Jan 2026 23:39:29 +0100 Subject: [PATCH] Explicit float -> int typecast --- src/Captcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Captcha.php b/src/Captcha.php index 0662e7c..139f92c 100644 --- a/src/Captcha.php +++ b/src/Captcha.php @@ -397,7 +397,7 @@ protected function text(): void foreach ($text as $key => $char) { $marginLeft = $this->textLeftPadding + ($key * ($this->image->width() - $this->textLeftPadding) / $this->length); - $this->image->text($char, $marginLeft, $marginTop, function ($font) { + $this->image->text($char, (int) $marginLeft, (int) $marginTop, function ($font) { /* @var Font $font */ $font->file($this->font()); $font->size($this->fontSize());