Skip to content

Commit 220377c

Browse files
committedJun 17, 2022
Fix fatal error under php 8
1 parent 3cb3f7c commit 220377c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/Diff/Renderer/Html/Array.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private function getChangeExtent($fromLine, $toLine)
150150
{
151151
$start = 0;
152152
$limit = min(strlen($fromLine), strlen($toLine));
153-
while($start < $limit && $fromLine{$start} == $toLine{$start}) {
153+
while ($start < $limit && $fromLine[$start] == $toLine[$start]) {
154154
++$start;
155155
}
156156
$end = -1;

0 commit comments

Comments
 (0)