Skip to content

Commit

Permalink
PHP 8.3: Incrementor Fix (#1031)
Browse files Browse the repository at this point in the history
  • Loading branch information
Denoder authored Jan 9, 2024
1 parent 6bce16c commit c383197
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/system/classes/VersionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ protected function getNewFileVersions($code, $version = null)
$versions = $this->getFileVersions($code);
$position = array_search($version, array_keys($versions), true);

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

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

Expand Down

0 comments on commit c383197

Please sign in to comment.