MDL-76441 env: Moodle 4.2.x and 4.3.x do not support PHP 8.3

This commit is contained in:
Eloy Lafuente (stronk7)
2024-02-15 18:45:02 +01:00
parent 0f8e328e75
commit f0bbfa22a2
3 changed files with 14 additions and 0 deletions
+11
View File
@@ -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');
}