From 9943e59cfb7df57dc1f7e29ce97dd15f49fffb8c Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Tue, 10 Nov 2026 11:00:24 -0600 Subject: [PATCH] Lower the PHP minimum to 8.1 The extension now enables on PHP 8.1.0 and later instead of 8.3.36. phpBB requirements are unchanged. Co-Authored-By: Claude Opus 5.5 --- composer.json | 2 +- ext.php | 4 ++-- language/en/activationjustification_install.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 8a0bba4..d4ec186 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "php": ">=8.3.36", + "php": ">=8.1.0", "composer/installers": "^1.0 || ^2.0" }, "extra": { diff --git a/ext.php b/ext.php index d23dd0e..e9915bd 100644 --- a/ext.php +++ b/ext.php @@ -49,12 +49,12 @@ protected function check_phpbb_version() } /** - * Requires PHP 8.3.36 due to security fixes. + * Requires PHP 8.1.0 or later. * * @return bool */ protected function check_php_version() { - return PHP_VERSION_ID >= 80336; + return PHP_VERSION_ID >= 80100; } } diff --git a/language/en/activationjustification_install.php b/language/en/activationjustification_install.php index 4e718c1..22444ae 100644 --- a/language/en/activationjustification_install.php +++ b/language/en/activationjustification_install.php @@ -16,5 +16,5 @@ } $lang = array_merge($lang, array( - 'ACTIVATIONJUSTIFICATION_NOT_ENABLEABLE' => 'Activation Justification could not be enabled. It requires phpBB 3.3.19 or later and PHP 8.3.36 or later.', + 'ACTIVATIONJUSTIFICATION_NOT_ENABLEABLE' => 'Activation Justification could not be enabled. It requires phpBB 3.3.19 or later and PHP 8.1 or later.', ));