From 6978a852949810bcf1b2ba421f099a7c54e80558 Mon Sep 17 00:00:00 2001 From: codemasher Date: Tue, 3 Mar 2020 09:44:40 +0100 Subject: [PATCH] :shower: --- examples/QRImageWithText.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/QRImageWithText.php b/examples/QRImageWithText.php index d33ea1045..e0dd18d71 100644 --- a/examples/QRImageWithText.php +++ b/examples/QRImageWithText.php @@ -92,7 +92,7 @@ class QRImageWithText extends QRImage{ // loop through the string and draw the letters foreach(\str_split($text) as $i => $chr){ - \imagechar($this->image, $textSize, $i * $w + $x, $this->length, $chr, $fontColor); + \imagechar($this->image, $textSize, (int)($i * $w + $x), $this->length, $chr, $fontColor); } }