Skip to content

Commit 7b70cd8

Browse files
committed
Require PHP >= 8.1.0
Adds a check for the minimum required PHP version. As enumerations are used, at least PHP 8.1 is required. It's also the required version for PhD.
1 parent e94861b commit 7b70cd8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎configure.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
ini_set( 'display_startup_errors' , 1 );
2424
error_reporting( E_ALL );
2525

26+
if (PHP_VERSION_ID < 80100) {
27+
throw new RuntimeException('PHP version ">= 8.1.0" is required. You are running ' . PHP_VERSION . '.');
28+
}
29+
2630
ob_implicit_flush();
2731
libxml_use_internal_errors(true);
2832

0 commit comments

Comments
 (0)