MDL-60543 env: Moodle 3.2 and 3.3 do no support PHP7.2
This commit is contained in:
@@ -1593,3 +1593,14 @@ function restrict_php_version(&$result, $version) {
|
||||
function restrict_php_version_71(&$result) {
|
||||
return restrict_php_version($result, '7.1');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the current PHP version is greater than or equal to
|
||||
* PHP version 7.2.
|
||||
*
|
||||
* @param object $result an environment_results instance
|
||||
* @return bool result of version check
|
||||
*/
|
||||
function restrict_php_version_72(&$result) {
|
||||
return restrict_php_version($result, '7.2');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user