Merge branch 'PHP-8.3'

* PHP-8.3:
  Fix run-tests.php differ calculateCommonSubsequence for EXPECTF
This commit is contained in:
Ilija Tovilo 2024-01-08 13:36:51 +01:00
commit d8df700e45
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

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