1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix run-tests.php differ calculateCommonSubsequence for EXPECTF

calculateCommonSubsequence should not contain regexes.

Fixes GH-13083
Closes GH-13084
This commit is contained in:
Ilija Tovilo
2024-01-06 17:18:43 +01:00
parent 3a237b96a0
commit 379e913e1a

View File

@@ -4138,7 +4138,7 @@ final class Differ
if ($cFrom === 1) {
foreach ($to as $toV) {
if (($this->isEqual)($from[0], $toV)) {
return [$from[0]];
return [$toV];
}
}