From c10afe20836ce5cc95b5c4239f1178f6e11865b8 Mon Sep 17 00:00:00 2001 From: Michael Tsang Date: Fri, 16 Oct 2020 20:38:55 +0800 Subject: [PATCH] fix #90 php 7.4 string offset curly braces deprecation --- lib/Common/BitMatrix.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Common/BitMatrix.php b/lib/Common/BitMatrix.php index dec4509..96700db 100644 --- a/lib/Common/BitMatrix.php +++ b/lib/Common/BitMatrix.php @@ -40,7 +40,7 @@ public static function parse($stringRepresentation, $setString, $unsetString) $pos = 0; while ($pos < strlen($stringRepresentation)) { if ($stringRepresentation[$pos] == '\n' || - $stringRepresentation->{$pos} == '\r') { + $stringRepresentation[$pos] == '\r') { if ($bitsPos > $rowStartPos) { if ($rowLength == -1) { $rowLength = $bitsPos - $rowStartPos;