Skip to content

Commit

Permalink
Update VersionManager.php
Browse files Browse the repository at this point in the history
Solve the problem of unable to install extensions
  • Loading branch information
amorZhu authored Mar 3, 2024
1 parent fc93239 commit 112edf7
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 112edf7

Please sign in to comment.