diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-03-10 20:10:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 20:10:54 +0100 |
commit | c8a360cd7a02703547102380296fe4cbb414c5d7 (patch) | |
tree | 6ada5103e7ef3512ee20a499c1dcabfa714f6037 /apps/settings | |
parent | 0a6ba15bb29ae8e4f765e300c32b9609efc0e08f (diff) | |
parent | f228d73b38e5f71566c8dc055f4d322c0dc22514 (diff) | |
download | nextcloud-server-c8a360cd7a02703547102380296fe4cbb414c5d7.tar.gz nextcloud-server-c8a360cd7a02703547102380296fe4cbb414c5d7.zip |
Merge pull request #19580 from nextcloud/debt/noid/outdated-check
Update check for outdated php version.
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index f323590ad84..1429fd5ed8e 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -262,12 +262,8 @@ class CheckSetupController extends Controller { * * @return bool */ - protected function isPhpOutdated() { - if (version_compare(PHP_VERSION, '7.1.0', '<')) { - return true; - } - - return false; + protected function isPhpOutdated(): bool { + return PHP_VERSION_ID < 70300; } /** @@ -276,7 +272,7 @@ class CheckSetupController extends Controller { * * @return array */ - private function isPhpSupported() { + private function isPhpSupported(): array { return ['eol' => $this->isPhpOutdated(), 'version' => PHP_VERSION]; } |