Skip to content

Commit

Permalink
Update phpBB4 version constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <[email protected]>
  • Loading branch information
iMattPro committed Jun 12, 2024
1 parent cfc36e2 commit fe0fb5c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -29,7 +29,7 @@
}
],
"require": {
"php": ">=7.1.3",
"php": ">=8.1",
"composer/installers": "~1.0"
},
"require-dev": {
Expand All @@ -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",
Expand Down
9 changes: 6 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '>=');
}

/**
Expand Down

0 comments on commit fe0fb5c

Please sign in to comment.