|
@@ -47,7 +47,7 @@ |
|
|
block discarded – undo |
|
47
|
47
|
$filter = function (VersionInterface $v) use ($target, $comparator, $direction) { |
|
48
|
48
|
return ($direction->isUp() ^ $v->isMigrated()) // direction must be opposite to migration status |
|
49
|
49
|
&& $comparator->compare($v, $target) <= 0; // version must be before or be equal to target (not |
|
50
|
|
- // affected by direction because comparator is reversed) |
|
|
50
|
+ // affected by direction because comparator is reversed) |
|
51
|
51
|
}; |
|
52
|
52
|
$collection = $collection->filter($filter)->sort($comparator); |
|
53
|
53
|
|
Please login to merge, or discard this patch.