MDL-66262 env: Moodle 3.6.x and 3.7.x do not support PHP 7.4

This commit is contained in:
Eloy Lafuente (stronk7) 2019-09-13 17:41:53 +02:00
parent 1c3efe48f8
commit c2617a2878
3 changed files with 14 additions and 0 deletions

View file

@ -1628,3 +1628,14 @@ function restrict_php_version_72(&$result) {
function restrict_php_version_73(&$result) {
return restrict_php_version($result, '7.3');
}
/**
* Check if the current PHP version is greater than or equal to
* PHP version 7.4.
*
* @param object $result an environment_results instance
* @return bool result of version check
*/
function restrict_php_version_74(&$result) {
return restrict_php_version($result, '7.4');
}