MDL-76441 env: Moodle 4.2.x and 4.3.x do not support PHP 8.3
This commit is contained in:
@@ -1686,3 +1686,14 @@ function restrict_php_version_81($result) {
|
||||
function restrict_php_version_82($result) {
|
||||
return restrict_php_version($result, '8.2');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the current PHP version is greater than or equal to
|
||||
* PHP version 8.3
|
||||
*
|
||||
* @param object $result an environment_results instance
|
||||
* @return bool result of version check
|
||||
*/
|
||||
function restrict_php_version_83($result) {
|
||||
return restrict_php_version($result, '8.3');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user