Skip to content

Commit

Permalink
Merge pull request #2108 from amorZhu/2.0
Browse files Browse the repository at this point in the history
Update VersionManager.php
  • Loading branch information
PorygonCN authored Oct 24, 2024
2 parents 179977d + 112edf7 commit 77196e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Extend/VersionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ public function getNewFileVersions($name, $version = null)

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

return array_slice($versions, ++$position);
if ($position === false) {
return $versions;
}

return array_slice($versions, $position++);
}

public function getFileVersions($name)
Expand Down

0 comments on commit 77196e8

Please sign in to comment.