From 7aba57cf8267568cfa6916fd6d2c99022aa86e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Navr=C3=A1til?= Date: Fri, 20 Nov 2020 14:40:44 +0100 Subject: [PATCH] i is a variable not a constant --- countdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/countdown.php b/countdown.php index 2d84468..609d50b 100644 --- a/countdown.php +++ b/countdown.php @@ -167,7 +167,7 @@ public function __construct($settings) for ($i = 0; $i < $strlen; $i++) { $dimensions = imagettfbbox($size, $angle, $fontfile, $string[$i]); $this->fontSettings['characterWidths'][] = array( - $string[i] => $dimensions[2] + $string[$i] => $dimensions[2] ); }