diff --git a/admin/environment.xml b/admin/environment.xml index e2c68ad78088e..d0358a2fe2acb 100644 --- a/admin/environment.xml +++ b/admin/environment.xml @@ -3751,6 +3751,7 @@ + diff --git a/lang/en/admin.php b/lang/en/admin.php index 4158af27a0738..dfda9a40f8a03 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -1435,6 +1435,7 @@ $string['unsupportedphpversion74'] = 'PHP version 7.4 and higher are not supported.'; $string['unsupportedphpversion80'] = 'PHP version 8.0 and higher are not supported.'; $string['unsupportedphpversion81'] = 'PHP version 8.1 and higher are not supported.'; +$string['unsupportedphpversion82'] = 'PHP version 8.2 and higher are not supported.'; $string['unsuspenduser'] = 'Activate user account'; $string['updateaccounts'] = 'Update existing accounts'; $string['updatecomponent'] = 'Update component'; diff --git a/lib/environmentlib.php b/lib/environmentlib.php index 5ace132227897..9e69ba19ce75c 100644 --- a/lib/environmentlib.php +++ b/lib/environmentlib.php @@ -1675,3 +1675,14 @@ function restrict_php_version_80($result) { function restrict_php_version_81($result) { return restrict_php_version($result, '8.1'); } + +/** + * Check if the current PHP version is greater than or equal to + * PHP version 8.2 + * + * @param object $result an environment_results instance + * @return bool result of version check + */ +function restrict_php_version_82($result) { + return restrict_php_version($result, '8.2'); +}