Skip to content

Commit

Permalink
fix update for 32-bit
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Nov 25, 2022
1 parent 61e72d4 commit 1028b1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/private/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*/
namespace OC;

use Composer\Semver\Semver;
use OCP\App\IAppManager;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventDispatcher;
Expand Down Expand Up @@ -139,7 +138,7 @@ public function upgrade(): bool {

$success = true;
try {
if (PHP_INT_SIZE < 8 && Semver::satisfies($currentVersion, '> 25')) {
if (PHP_INT_SIZE < 8 && version_compare($currentVersion, '26.0.0', '>=')) {
throw new HintException('You are running a 32-bit PHP version. Cannot upgrade to Nextcloud 26 and higher. Please switch to 64-bit PHP.');
}
$this->doUpgrade($currentVersion, $installedVersion);
Expand Down

0 comments on commit 1028b1b

Please sign in to comment.