From dee35c6a024de9104a3f64177cfab54284185d6f Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Tue, 10 Nov 2026 10:59:26 -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/install_groupswitches.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 4557c73..d92b25b 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ } ], "require": { - "php": ">=8.3.36", + "php": ">=8.1.0", "composer/installers": "^1.0 || ^2.0" }, "require-dev": { diff --git a/ext.php b/ext.php index d2b9ada..ea1bc14 100644 --- a/ext.php +++ b/ext.php @@ -51,12 +51,12 @@ public function check_phpbb_version() } /** - * Requires PHP 8.3.36 due to security fixes. + * Requires PHP 8.1.0 or later. * * @return bool */ public function check_php_version() { - return PHP_VERSION_ID >= 80336; + return PHP_VERSION_ID >= 80100; } } diff --git a/language/en/install_groupswitches.php b/language/en/install_groupswitches.php index e1be9d7..3d33ba1 100644 --- a/language/en/install_groupswitches.php +++ b/language/en/install_groupswitches.php @@ -40,5 +40,5 @@ // $lang = array_merge($lang, [ - 'GROUPSWITCHES_NOT_ENABLEABLE' => 'Group Switches could not be enabled. The minimum requirements of phpBB 3.3.19 and/or PHP 8.3.36 were not satisfied.', + 'GROUPSWITCHES_NOT_ENABLEABLE' => 'Group Switches could not be enabled. The minimum requirements of phpBB 3.3.19 and/or PHP 8.1 were not satisfied.', ]);