Skip to content

Commit 077415d

Browse files
committed
Update requirements
1 parent 2c17c33 commit 077415d

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

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": "phpBB Ideas centre for phpBB 3.2.",
55
"homepage": "https://www.phpbb.com",
6-
"version": "2.2.1",
6+
"version": "2.2.2-dev",
77
"license": "GPL-2.0-only",
88
"authors": [
99
{
@@ -34,13 +34,13 @@
3434
}
3535
],
3636
"require": {
37-
"php": ">=5.4",
37+
"php": ">=5.5",
3838
"composer/installers": "~1.0"
3939
},
4040
"extra": {
4141
"display-name": "phpBB Ideas",
4242
"soft-require": {
43-
"phpbb/phpbb": ">=3.2.1,<3.4"
43+
"phpbb/phpbb": ">=3.2.1"
4444
}
4545
}
4646
}

ext.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ class ext extends \phpbb\extension\base
2525
* The current phpBB version should meet or exceed
2626
* the minimum version required by this extension:
2727
*
28-
* Requires phpBB 3.2.1 due to use of $event->update_subarray();
28+
* Requires phpBB 3.2.1 due to use of $event->update_subarray()
29+
* and PHP 5.5.0 due to use of array_column()
2930
*
3031
* @return bool
3132
* @access public
3233
*/
3334
public function is_enableable()
3435
{
35-
return phpbb_version_compare(PHPBB_VERSION, '3.2.1', '>=');
36+
return phpbb_version_compare(PHPBB_VERSION, '3.2.1', '>=')
37+
&& phpbb_version_compare(PHP_VERSION, '5.5.0', '>=');
3638
}
3739
}

0 commit comments

Comments
 (0)