Skip to content

Commit fe0fb5c

Browse files
committed
Update phpBB4 version constraints
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent cfc36e2 commit fe0fb5c

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "An extension which allows you to create a set of rules for your phpBB forum",
55
"homepage": "https://www.phpbb.com/customise/db/extension/boardrules/",
6-
"version": "3.0.2-dev",
6+
"version": "3.1.0-dev",
77
"keywords": ["phpbb", "extension", "rules"],
88
"license": "GPL-2.0-only",
99
"authors": [
@@ -29,7 +29,7 @@
2929
}
3030
],
3131
"require": {
32-
"php": ">=7.1.3",
32+
"php": ">=8.1",
3333
"composer/installers": "~1.0"
3434
},
3535
"require-dev": {
@@ -38,7 +38,7 @@
3838
"extra": {
3939
"display-name": "Board Rules",
4040
"soft-require": {
41-
"phpbb/phpbb": ">=3.3.2,<4.0.0@dev"
41+
"phpbb/phpbb": ">=4.0.0@dev"
4242
},
4343
"version-check": {
4444
"host": "www.phpbb.com",

composer.lock

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ class ext extends \phpbb\extension\base
3131
* The current phpBB version should meet or exceed
3232
* the minimum version required by this extension:
3333
*
34-
* Requires phpBB 3.3.2 due to using role_exists check in permission migration.
35-
* Not compatible with phpBB4 due to use of deprecated or changed functions, classes and Icons
34+
* Requires phpBB4 due to use of deprecated or changed functions, classes and Icons
3635
*
3736
* @return bool
3837
* @access public
3938
*/
4039
public function is_enableable()
4140
{
42-
return phpbb_version_compare(PHPBB_VERSION, '3.3.2', '>=')
43-
&& phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<');
41+
return phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '>=');
4442
}
4543

4644
/**

0 commit comments

Comments
 (0)