From fe0fb5cbcc2b511532552f84e14bdce38a945ab8 Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 12 Jun 2024 10:54:04 -0700 Subject: [PATCH] Update phpBB4 version constraints Signed-off-by: Matt Friedman --- composer.json | 6 +++--- composer.lock | 9 ++++++--- ext.php | 6 ++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 3550f62d..b8873f27 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "type": "phpbb-extension", "description": "An extension which allows you to create a set of rules for your phpBB forum", "homepage": "https://www.phpbb.com/customise/db/extension/boardrules/", - "version": "3.0.2-dev", + "version": "3.1.0-dev", "keywords": ["phpbb", "extension", "rules"], "license": "GPL-2.0-only", "authors": [ @@ -29,7 +29,7 @@ } ], "require": { - "php": ">=7.1.3", + "php": ">=8.1", "composer/installers": "~1.0" }, "require-dev": { @@ -38,7 +38,7 @@ "extra": { "display-name": "Board Rules", "soft-require": { - "phpbb/phpbb": ">=3.3.2,<4.0.0@dev" + "phpbb/phpbb": ">=4.0.0@dev" }, "version-check": { "host": "www.phpbb.com", diff --git a/composer.lock b/composer.lock index 6ce289b7..689a006f 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "aa902e7124b8f43f52640f1c9641a10d", + "content-hash": "2e95b55fa7319eabf9cf6b3301e4062b", "packages": [ { "name": "composer/installers", @@ -210,6 +210,9 @@ "task", "tool" ], + "support": { + "source": "https://github.com/phingofficial/phing/tree/2.4.14" + }, "time": "2012-11-29T21:23:47+00:00" } ], @@ -219,8 +222,8 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=7.1.3" + "php": ">=8.1" }, "platform-dev": [], - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.6.0" } diff --git a/ext.php b/ext.php index 9fdf22a8..6b937bc4 100644 --- a/ext.php +++ b/ext.php @@ -31,16 +31,14 @@ class ext extends \phpbb\extension\base * The current phpBB version should meet or exceed * the minimum version required by this extension: * - * Requires phpBB 3.3.2 due to using role_exists check in permission migration. - * Not compatible with phpBB4 due to use of deprecated or changed functions, classes and Icons + * Requires phpBB4 due to use of deprecated or changed functions, classes and Icons * * @return bool * @access public */ public function is_enableable() { - return phpbb_version_compare(PHPBB_VERSION, '3.3.2', '>=') - && phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<'); + return phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '>='); } /**