Skip to content
This repository was archived by the owner on May 27, 2023. It is now read-only.

Commit 43ea843

Browse files
committed
Fix issue with version number that is larger than expected.
1 parent afa7292 commit 43ea843

File tree

1 file changed

+1
-0
lines changed
  • lib/EcomDev/PHPUnit/Constraint/Config/Resource

1 file changed

+1
-0
lines changed

lib/EcomDev/PHPUnit/Constraint/Config/Resource/Script.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ protected function getVersionScriptsDiff($versions, $from = null, $to = null, $s
272272
if ($to !== null && version_compare($latestVersionFound, $to) === -1) {
273273
$expectedVersions[] = sprintf('%supgrade-%s-%s.php', $scriptPrefix, $latestVersionFound, $to);
274274
} elseif ($to !== null && version_compare($latestVersionFound, $to) === 1 && $expectedVersions) {
275+
array_pop($actualVersions);
275276
array_pop($expectedVersions);
276277
}
277278

0 commit comments

Comments
 (0)