Skip to content

Commit

Permalink
Fix run-tests.php differ calculateCommonSubsequence for EXPECTF
Browse files Browse the repository at this point in the history
calculateCommonSubsequence should not contain regexes.

Fixes GH-13083
Closes GH-13084
  • Loading branch information
iluuu1994 committed Jan 8, 2024
1 parent 3a237b9 commit 379e913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -4138,7 +4138,7 @@ public function calculateCommonSubsequence(array $from, array $to): array
if ($cFrom === 1) {
foreach ($to as $toV) {
if (($this->isEqual)($from[0], $toV)) {
return [$from[0]];
return [$toV];
}
}

Expand Down

0 comments on commit 379e913

Please sign in to comment.