*/
class CRM_Utils_Check_Env {
- const MINIMUM_RECOMMENDED_PHP_VERSION = '5.5';
-
/**
* Run some sanity checks.
*
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
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