Skip to content

Commit ee3093d

Browse files
committed
Update phpBB 4 version constraints
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent cfa69b8 commit ee3093d

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
}
3535
],
3636
"require": {
37-
"php": "^7.2 || ^8.0.0",
37+
"php": ">=8.1",
3838
"composer/installers": "~1.0"
3939
},
4040
"extra": {
4141
"display-name": "phpBB Ideas",
4242
"soft-require": {
43-
"phpbb/phpbb": ">=3.3.0"
43+
"phpbb/phpbb": ">=4.0.0@dev"
4444
}
4545
}
4646
}

ext.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,16 @@ public static function status_name($id)
5757
/**
5858
* Check whether the extension can be enabled.
5959
*
60-
* Requires phpBB >= 3.2.3 due to removal of deprecated Twig functions (ie Twig_SimpleFunction)
61-
* Requires phpBB >= 3.3.0 due to use of PHP 7 features
62-
* Requires PHP >= 7.1.0
60+
* Requires phpBB >= 4.0.0 due to use of Icon())
61+
* Requires PHP >= 8.1
6362
* Also incompatible with SQLite which does not support SQRT in SQL queries
6463
*
6564
* @return bool
6665
* @access public
6766
*/
6867
public function is_enableable()
6968
{
70-
if (PHP_VERSION_ID < 70100 || phpbb_version_compare(PHPBB_VERSION, '3.3.0', '<'))
69+
if (PHP_VERSION_ID < 80100 || phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<'))
7170
{
7271
return false;
7372
}

0 commit comments

Comments
 (0)