Skip to content

Commit e79d9f1

Browse files
authored
Fix fatal error under php 8
1 parent 235607c commit e79d9f1

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)