Skip to content

Commit 1028b1b

Browse files
committed
fix update for 32-bit
Signed-off-by: Simon L <szaimen@e.mail.de>
1 parent 61e72d4 commit 1028b1b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/private/Updater.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
*/
4141
namespace OC;
4242

43-
use Composer\Semver\Semver;
4443
use OCP\App\IAppManager;
4544
use OCP\EventDispatcher\Event;
4645
use OCP\EventDispatcher\IEventDispatcher;
@@ -139,7 +138,7 @@ public function upgrade(): bool {
139138

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

0 commit comments

Comments
 (0)