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:
Eloy Lafuente (stronk7)
2021-02-13 12:51:51 +01:00
parent bbf242efb0
commit 8ead95fabe
3 changed files with 15 additions and 0 deletions
+11
View File
@@ -1639,3 +1639,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');
}