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-26 13:08:03 +01:00
parent 4652b66ee4
commit 0cbda5bda4
3 changed files with 15 additions and 0 deletions
+11
View File
@@ -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');
}