From e0aee35da8371e6262735ef2152e670bee3392e1 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 12 Oct 2015 09:23:12 -0400 Subject: [PATCH] CRM-13823 - Cleanup duplicate constants --- CRM/Utils/Check/Env.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CRM/Utils/Check/Env.php b/CRM/Utils/Check/Env.php index 52723b0c20..0f46b848c9 100644 --- a/CRM/Utils/Check/Env.php +++ b/CRM/Utils/Check/Env.php @@ -32,8 +32,6 @@ */ class CRM_Utils_Check_Env { - const MINIMUM_RECOMMENDED_PHP_VERSION = '5.5'; - /** * Run some sanity checks. * @@ -63,13 +61,13 @@ class CRM_Utils_Check_Env { public function checkPhpVersion() { $messages = array(); - if (version_compare(phpversion(), self::MINIMUM_RECOMMENDED_PHP_VERSION) < 0) { + if (version_compare(phpversion(), CRM_Upgrade_Incremental_General::MIN_RECOMMENDED_PHP_VER) < 0) { $messages[] = new CRM_Utils_Check_Message( 'checkPhpVersion', ts('This system uses PHP version %1. While this meets the minimum requirements for CiviCRM to function, upgrading to PHP version %2 or newer is recommended for maximum compatibility.', array( 1 => phpversion(), - 2 => self::MINIMUM_RECOMMENDED_PHP_VERSION, + 2 => CRM_Upgrade_Incremental_General::MIN_RECOMMENDED_PHP_VER, )), ts('PHP Out-of-Date'), \Psr\Log\LogLevel::NOTICE @@ -81,7 +79,7 @@ class CRM_Utils_Check_Env { ts('This system uses PHP version %1 which meets or exceeds the minimum recommendation of %2.', array( 1 => phpversion(), - 2 => self::MINIMUM_RECOMMENDED_PHP_VERSION, + 2 => CRM_Upgrade_Incremental_General::MIN_RECOMMENDED_PHP_VER, )), ts('PHP Up-to-Date'), \Psr\Log\LogLevel::INFO -- 2.25.1