diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-10-16 17:23:47 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-10-19 11:44:03 +0200 |
commit | 2e4d1549a44ce3b29d3287ba3721a464733bf708 (patch) | |
tree | b7ab204e34f2920ebd0f339bc53f292a5f797158 /apps/settings/lib/SetupChecks/PhpOutdated.php | |
parent | 11ebf469da14224b3e1146b65eb16095ab8b22a8 (diff) | |
download | nextcloud-server-2e4d1549a44ce3b29d3287ba3721a464733bf708.tar.gz nextcloud-server-2e4d1549a44ce3b29d3287ba3721a464733bf708.zip |
Change SetupResult API to named constructors
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/lib/SetupChecks/PhpOutdated.php')
-rw-r--r-- | apps/settings/lib/SetupChecks/PhpOutdated.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/lib/SetupChecks/PhpOutdated.php b/apps/settings/lib/SetupChecks/PhpOutdated.php index 51b479ec4b9..2d161649315 100644 --- a/apps/settings/lib/SetupChecks/PhpOutdated.php +++ b/apps/settings/lib/SetupChecks/PhpOutdated.php @@ -47,8 +47,8 @@ class PhpOutdated implements ISetupCheck { public function run(): SetupResult { if (PHP_VERSION_ID < 80100) { - return new SetupResult(SetupResult::WARNING, $this->l10n->t('You are currently running PHP %s. PHP 8.0 is now deprecated in Nextcloud 27. Nextcloud 28 may require at least PHP 8.1. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [PHP_VERSION]), 'https://secure.php.net/supported-versions.php'); + return SetupResult::warning($this->l10n->t('You are currently running PHP %s. PHP 8.0 is now deprecated in Nextcloud 27. Nextcloud 28 may require at least PHP 8.1. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [PHP_VERSION]), 'https://secure.php.net/supported-versions.php'); } - return new SetupResult(SetupResult::SUCCESS, $this->l10n->t('You are currently running PHP %s.', [PHP_VERSION])); + return SetupResult::success($this->l10n->t('You are currently running PHP %s.', [PHP_VERSION])); } } |