This commit is contained in:
codemasher
2020-03-03 09:44:40 +01:00
parent a8422eea4d
commit 6978a85294
+1 -1
View File
@@ -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);
}
}