Skip to content

Commit 83c703c

Browse files
committed
Fix lint check on PHP 7.3
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent 3c52938 commit 83c703c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
php-versions: ['7.3', '7.4', '8.0']
15+
ocp-version: ['^v21.0.0', '^v22.0.0', '^v23.0.0', 'dev-master']
1516
name: php${{ matrix.php-versions }} lint
1617
steps:
1718
- name: Checkout
@@ -23,6 +24,9 @@ jobs:
2324
coverage: none
2425
- name: Install dependencies
2526
run: composer i
27+
- name: Install OCP package
28+
if: ${{ matrix.php-versions != '7.3' }}
29+
run: composer require --dev christophwurst/nextcloud:${{ matrix.ocp-version }}
2630
- name: Lint
2731
run: composer run lint
2832

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"require-dev": {
3-
"christophwurst/nextcloud": "dev-master",
3+
"christophwurst/nextcloud": "^v20.0.0",
44
"php-parallel-lint/php-parallel-lint": "^1.0",
55
"phpunit/phpunit": "^8",
66
"nextcloud/coding-standard": "^0.4.0"

0 commit comments

Comments
 (0)