You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Settings\SetupChecks;
use OCP\IL10N;
use OCP\SetupCheck\ISetupCheck;
use OCP\SetupCheck\SetupResult;
class PhpOutdated implements ISetupCheck {
public const DEPRECATED_PHP_VERSION = '8.3';
public const DEPRECATED_SINCE = '35';
public const FUTURE_REQUIRED_PHP_VERSION = '8.4';
public const FUTURE_REQUIRED_STARTING = '37';
public function __construct(
private IL10N $l10n,
) {
}
#[\Override]
public function getCategory(): string {
return 'security';
}
#[\Override]
public function getName(): string {
return $this->l10n->t('PHP version');
}
#[\Override]
public function run(): SetupResult {
if (PHP_VERSION_ID < 80400) {
return SetupResult::warning($this->l10n->t('You are currently running PHP %1$s. PHP %2$s is deprecated since Nextcloud %3$s. Nextcloud %4$s may require at least PHP %5$s. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [