diff --git a/lib/private/Updater.php b/lib/private/Updater.php index cbe152db70ab8..53b07e2580941 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -40,7 +40,6 @@ */ namespace OC; -use Composer\Semver\Semver; use OCP\App\IAppManager; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventDispatcher; @@ -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.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);