mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-66262 env: Moodle 3.6.x and 3.7.x do not support PHP 7.4
This commit is contained in:
parent
1c3efe48f8
commit
c2617a2878
3 changed files with 14 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue