Skip to content

Commit 2b68c8e

Browse files
authored
PHP 8 support (#3)
* PHP 8 support
1 parent 4e00576 commit 2b68c8e

28 files changed

+4189
-2204
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
operating-system: [ubuntu-latest]
20-
php-version: ['7.3']
20+
php-version: ['7.4', '8.0 ']
2121
coverage-driver: [pcov]
2222

2323
name: CI with PHP ${{ matrix.php-version }}, using ${{ matrix.coverage-driver }}
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
php-version: ${{ matrix.php-version }}
3333
coverage: ${{ matrix.coverage-driver }}
34-
tools: composer:v1
34+
tools: composer:v2
3535

3636
- name: Get composer cache directory
3737
id: composer-cache

.github/workflows/cs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
operating-system: [ubuntu-latest]
20-
php-version: ['7.3']
20+
php-version: ['7.4']
2121
check: ['cs', 'static-analyze']
2222

2323
name: Coding Standards on PHP ${{ matrix.php-version }}
@@ -30,7 +30,7 @@ jobs:
3030
uses: shivammathur/setup-php@v2
3131
with:
3232
php-version: ${{ matrix.php-version }}
33-
tools: composer:v1
33+
tools: composer:v2
3434

3535
- name: Get composer cache directory
3636
id: composer-cache

.github/workflows/mt.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
operating-system: [ubuntu-latest]
20-
php-version: ['7.3']
20+
php-version: ['7.4']
2121
coverage-driver: [pcov]
2222

2323
name: Mutation testing with PHP ${{ matrix.php-version }}, using ${{ matrix.coverage-driver }}
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
php-version: ${{ matrix.php-version }}
3333
coverage: ${{ matrix.coverage-driver }}
34-
tools: composer:v1
34+
tools: composer:v2
3535

3636
- name: Get composer cache directory
3737
id: composer-cache

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"sort-packages": true
2727
},
2828
"require": {
29-
"php": "^7.3",
30-
"infection/abstract-testframework-adapter": "^0.3.0",
29+
"php": "^7.4 || ^8.0",
30+
"infection/abstract-testframework-adapter": "^0.3.1",
3131
"infection/include-interceptor": "^0.2.0",
3232
"symfony/filesystem": "^3.4.29 || ^4.0 || ^5.0",
3333
"symfony/process": "^3.4.29 || ^4.0 || ^5.0",
@@ -39,19 +39,19 @@
3939
}
4040
},
4141
"require-dev": {
42-
"friendsofphp/php-cs-fixer": "^2.16",
43-
"infection/infection": "^0.15.2",
42+
"friendsofphp/php-cs-fixer": "^2.18",
43+
"infection/infection": "^0.21.0",
4444
"php-coveralls/php-coveralls": "^2.4",
45-
"phpstan/extension-installer": "^1.0",
46-
"phpstan/phpstan": "^0.12.10",
47-
"phpstan/phpstan-phpunit": "^0.12.6",
48-
"phpstan/phpstan-strict-rules": "^0.12.2",
49-
"phpstan/phpstan-webmozart-assert": "^0.12.2",
50-
"phpunit/phpunit": "^8.5",
51-
"thecodingmachine/safe": "^0.1.16",
52-
"vimeo/psalm": "^3.8"
45+
"phpstan/extension-installer": "^1.1",
46+
"phpstan/phpstan": "^0.12.70",
47+
"phpstan/phpstan-phpunit": "^0.12.17",
48+
"phpstan/phpstan-strict-rules": "^0.12.9",
49+
"phpstan/phpstan-webmozart-assert": "^0.12.9",
50+
"phpunit/phpunit": "^9.5",
51+
"thecodingmachine/safe": "^1.3",
52+
"vimeo/psalm": "^4.4"
5353
},
5454
"conflict": {
55-
"codeception/codeception": "<3.1.1"
55+
"codeception/codeception": "<4.1.9"
5656
}
5757
}

0 commit comments

Comments
 (0)