Skip to content

Commit 77196e8

Browse files
authored
Merge pull request #2108 from amorZhu/2.0
Update VersionManager.php
2 parents 179977d + 112edf7 commit 77196e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Extend/VersionManager.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ public function getNewFileVersions($name, $version = null)
204204

205205
$position = array_search($version, array_keys($versions));
206206

207-
return array_slice($versions, ++$position);
207+
if ($position === false) {
208+
return $versions;
209+
}
210+
211+
return array_slice($versions, $position++);
208212
}
209213

210214
public function getFileVersions($name)

0 commit comments

Comments
 (0)