Skip to content

Commit 5797775

Browse files
authored
Merge pull request #181 from iMattPro/updates
Update version constraints
2 parents 6c7c8b1 + dd73251 commit 5797775

3 files changed

Lines changed: 17 additions & 15 deletions

File tree

.github/workflows/tests.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
jobs:
2222
# START Basic Checks Job (EPV, code sniffer, images check, etc.)
2323
basic-checks:
24-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-22.04
2525
strategy:
2626
matrix:
2727
include:
@@ -33,14 +33,14 @@ jobs:
3333

3434
steps:
3535
- name: Checkout phpBB
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3737
with:
3838
repository: phpbb/phpbb
3939
ref: ${{ env.PHPBB_BRANCH }}
4040
path: phpBB3
4141

4242
- name: Checkout extension
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444
with:
4545
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}
4646

@@ -89,7 +89,7 @@ jobs:
8989

9090
# START MySQL and MariaDB Job
9191
mysql-tests:
92-
runs-on: ubuntu-20.04
92+
runs-on: ubuntu-22.04
9393
strategy:
9494
matrix:
9595
include:
@@ -156,14 +156,14 @@ jobs:
156156

157157
steps:
158158
- name: Checkout phpBB
159-
uses: actions/checkout@v3
159+
uses: actions/checkout@v4
160160
with:
161161
repository: phpbb/phpbb
162162
ref: ${{ env.PHPBB_BRANCH }}
163163
path: phpBB3
164164

165165
- name: Checkout extension
166-
uses: actions/checkout@v3
166+
uses: actions/checkout@v4
167167
with:
168168
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}
169169

@@ -240,7 +240,7 @@ jobs:
240240

241241
# START PostgreSQL Job
242242
postgres-tests:
243-
runs-on: ubuntu-20.04
243+
runs-on: ubuntu-22.04
244244
strategy:
245245
matrix:
246246
include:
@@ -301,14 +301,14 @@ jobs:
301301

302302
steps:
303303
- name: Checkout phpBB
304-
uses: actions/checkout@v3
304+
uses: actions/checkout@v4
305305
with:
306306
repository: phpbb/phpbb
307307
ref: ${{ env.PHPBB_BRANCH }}
308308
path: phpBB3
309309

310310
- name: Checkout extension
311-
uses: actions/checkout@v3
311+
uses: actions/checkout@v4
312312
with:
313313
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}
314314

@@ -354,7 +354,7 @@ jobs:
354354

355355
# START Other Tests Job (SQLite 3 and mssql)
356356
other-tests:
357-
runs-on: ubuntu-20.04
357+
runs-on: ubuntu-22.04
358358
strategy:
359359
matrix:
360360
include:
@@ -396,14 +396,14 @@ jobs:
396396

397397
steps:
398398
- name: Checkout phpBB
399-
uses: actions/checkout@v3
399+
uses: actions/checkout@v4
400400
with:
401401
repository: phpbb/phpbb
402402
ref: ${{ env.PHPBB_BRANCH }}
403403
path: phpBB3
404404

405405
- name: Checkout extension
406-
uses: actions/checkout@v3
406+
uses: actions/checkout@v4
407407
with:
408408
path: phpBB3/phpBB/ext/${{ env.EXTNAME }}
409409

composer.json

Lines changed: 2 additions & 2 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 add static pages to your phpBB forum",
55
"homepage": "https://www.phpbb.com/customise/db/extension/pages/",
6-
"version": "3.0.0",
6+
"version": "3.0.1-dev",
77
"keywords": ["phpbb", "extension", "static", "pages"],
88
"license": "GPL-2.0-only",
99
"authors": [
@@ -58,7 +58,7 @@
5858
"extra": {
5959
"display-name": "Pages",
6060
"soft-require": {
61-
"phpbb/phpbb": ">=3.3.2"
61+
"phpbb/phpbb": ">=3.3.2,<4.0.0@dev"
6262
},
6363
"version-check": {
6464
"host": "www.phpbb.com",

ext.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ class ext extends \phpbb\extension\base
2626
* the minimum version required by this extension:
2727
*
2828
* Requires phpBB 3.3.2 due to using role_exists check in permission migration.
29+
* Not compatible with phpBB 4.0.0-dev due to using updated classes.
2930
*
3031
* @return bool
3132
* @access public
3233
*/
3334
public function is_enableable()
3435
{
35-
return phpbb_version_compare(PHPBB_VERSION, '3.3.2', '>=');
36+
return phpbb_version_compare(PHPBB_VERSION, '3.3.2', '>=')
37+
&& phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '<');
3638
}
3739
}

0 commit comments

Comments
 (0)