Skip to content

Commit ba4f036

Browse files
authored
SimpleDiff: Offset $from always exist.
1 parent 79511ac commit ba4f036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SimpleDiff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function compare(string $left, string $right, bool $strict = false): Diff
2222
$captureBuffer = [];
2323

2424
for ($i = 0; isset($from[$i]); $i++) {
25-
$original = $from[$i] ?? '';
25+
$original = $from[$i];
2626
$target = $to[$i] ?? '';
2727
$lineNumber = str_pad((string) ($i + 1), $padLength, ' ', STR_PAD_LEFT) . '| ';
2828
if ($original === $target) {

0 commit comments

Comments
 (0)