Skip to content

Commit 334697b

Browse files
Merge pull request #50 from wandersonwhcr/issue-43
Use PHP 8.0
2 parents fe09d21 + dcab388 commit 334697b

File tree

14 files changed

+1273
-738
lines changed

14 files changed

+1273
-738
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.phpunit.result.cache
12
/vendor

.github/workflows/test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,20 @@ on:
77
jobs:
88
test:
99
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php_version:
13+
- 7.4
14+
- 8.0
1015
steps:
1116
- name: Checkout
1217
uses: actions/checkout@v2
1318
- name: Install
1419
uses: php-actions/composer@v5
1520
with:
16-
php_version: 7.4
21+
php_version: ${{ matrix.php_version }}
1722
- name: Test
1823
uses: php-actions/composer@v5
1924
with:
20-
php_version: 7.4
25+
php_version: ${{ matrix.php_version }}
2126
command: test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
.phpunit.result.cache
12
/vendor

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.4-cli-alpine
1+
FROM php:8.0-cli-alpine
22

33
ENV COMPOSER_CACHE_DIR /tmp
44

composer.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
}
1616
},
1717
"require": {
18-
"php": ">=7.0"
18+
"php": ">=7.4"
1919
},
2020
"require-dev": {
21-
"jakub-onderka/php-parallel-lint": "1.0.*",
2221
"phpmd/phpmd": "2.6.*",
23-
"phpunit/phpunit": "6.1.*",
24-
"sebastian/phpcpd": "3.0.*",
25-
"squizlabs/php_codesniffer": "3.5.*"
22+
"phpunit/phpunit": "9.5.*",
23+
"sebastian/phpcpd": "6.0.3",
24+
"squizlabs/php_codesniffer": "3.5.*",
25+
"php-parallel-lint/php-parallel-lint": "1.2.*"
2626
},
2727
"config": {
2828
"preferred-install": {
@@ -40,10 +40,5 @@
4040
"phpmd src text phpmd.xml",
4141
"phpcs"
4242
]
43-
},
44-
"extra": {
45-
"branch-alias": {
46-
"dev-develop": "1.2.x-dev"
47-
}
4843
}
4944
}

0 commit comments

Comments
 (0)