MDL-80629 env: Moodle 4.4.x and 4.5.x do not support PHP 8.4

This commit is contained in:
Andrew Nicols
2025-03-31 11:03:18 +08:00
parent b00c328d2d
commit ff0992e2bd
3 changed files with 14 additions and 0 deletions
+11
View File
@@ -1716,3 +1716,14 @@ function restrict_php_version_82($result) {
function restrict_php_version_83($result) {
return restrict_php_version($result, '8.3');
}
/**
* Check if the current PHP version is greater than or equal to
* PHP version 8.4
*
* @param \environment_results $result an environment_results instance
* @return bool result of version check
*/
function restrict_php_version_84(environment_results $result) {
return restrict_php_version($result, '8.4');
}