From a1659840d8304285dcefe0cf2a342da403f91fab Mon Sep 17 00:00:00 2001 From: smiley Date: Tue, 13 Jun 2023 16:12:33 +0200 Subject: [PATCH] :octocat: --- src/Data/QRMatrix.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Data/QRMatrix.php b/src/Data/QRMatrix.php index 5e6aeab68..1970d14fe 100755 --- a/src/Data/QRMatrix.php +++ b/src/Data/QRMatrix.php @@ -11,7 +11,7 @@ namespace chillerlan\QRCode\Data; use chillerlan\QRCode\Common\{BitBuffer, EccLevel, MaskPattern, ReedSolomonEncoder, Version}; -use function array_fill, count, floor, range; +use function array_fill, count, floor; /** * Holds an array representation of the final QR Code that contains numerical values for later output modifications; @@ -459,7 +459,7 @@ class QRMatrix{ */ public function setTimingPattern():self{ - foreach(range(8, ($this->moduleCount - 8 - 1)) as $i){ + for($i = 8; $i < ($this->moduleCount - 8); $i++){ if($this->matrix[6][$i] !== $this::M_NULL || $this->matrix[$i][6] !== $this::M_NULL){ continue;