summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-02-23 18:00:47 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2020-02-24 20:14:13 +0100
commitf228d73b38e5f71566c8dc055f4d322c0dc22514 (patch)
tree618dd1cfb83a92b4a9823112f7c36241e52d0507 /apps
parentbaf386b5d8c8f96993b5c61457281f1921c11ac0 (diff)
downloadnextcloud-server-f228d73b38e5f71566c8dc055f4d322c0dc22514.tar.gz
nextcloud-server-f228d73b38e5f71566c8dc055f4d322c0dc22514.zip
Update check for outdated php version.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php10
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];
}