MDL-68735 env: Moodle 3.8.x, 3.9.x and 3.10.x do not support PHP 8.0
This commit is contained in:
@@ -1653,3 +1653,14 @@ function restrict_php_version_73(&$result) {
|
||||
function restrict_php_version_74(&$result) {
|
||||
return restrict_php_version($result, '7.4');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the current PHP version is greater than or equal to
|
||||
* PHP version 8.0
|
||||
*
|
||||
* @param object $result an environment_results instance
|
||||
* @return bool result of version check
|
||||
*/
|
||||
function restrict_php_version_80($result) {
|
||||
return restrict_php_version($result, '8.0');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user