Skip to content

Commit 78ff4e9

Browse files
Merge pull request #240 from milan-miscevic/php82
Add 8.2, remove 7.4
2 parents a043e48 + da794b6 commit 78ff4e9

File tree

8 files changed

+414
-511
lines changed

8 files changed

+414
-511
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
php-version:
19-
- "8.1"
19+
- "8.2"
2020

2121
steps:
2222
- uses: "shivammathur/setup-php@2.9.0"
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
matrix:
3737
php-version:
38-
- "8.1"
38+
- "8.2"
3939

4040
steps:
4141
- uses: "shivammathur/setup-php@2.9.0"
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
php-version:
55-
- "8.1"
55+
- "8.2"
5656

5757
steps:
5858
- uses: "shivammathur/setup-php@2.9.0"
@@ -69,7 +69,7 @@ jobs:
6969
strategy:
7070
matrix:
7171
php-version:
72-
- "8.1"
72+
- "8.2"
7373

7474
steps:
7575
- uses: "shivammathur/setup-php@2.9.0"
@@ -78,6 +78,8 @@ jobs:
7878
- uses: "actions/checkout@v2"
7979
- uses: "php-actions/composer@v1"
8080
- run: "vendor/bin/php-cs-fixer fix --dry-run -v"
81+
env:
82+
PHP_CS_FIXER_IGNORE_ENV: 1
8183

8284
unit:
8385
name: "PHPUnit unit tests"
@@ -87,9 +89,9 @@ jobs:
8789
strategy:
8890
matrix:
8991
php-version:
90-
- "7.4"
9192
- "8.0"
9293
- "8.1"
94+
- "8.2"
9395

9496
steps:
9597
- uses: "shivammathur/setup-php@2.9.0"

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
DOCKER=docker-compose -f ./docker/docker-compose.yml
22
# #todo change to cli if needed
3-
PHP=php81-fpm
3+
PHP=php82-fpm
4+
5+
build: install
46

57
coverage:
68
$(DOCKER) run --rm $(PHP) php -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text
@@ -26,14 +28,14 @@ psalm:
2628
$(DOCKER) run --rm $(PHP) ./vendor/bin/psalm --show-info=true
2729

2830
standards:
29-
$(DOCKER) run --rm $(PHP) ./vendor/bin/php-cs-fixer fix --dry-run -v
31+
$(DOCKER) run -e PHP_CS_FIXER_IGNORE_ENV=1 --rm $(PHP) ./vendor/bin/php-cs-fixer fix --dry-run -v
3032

3133
test: standards unit phpstan psalm mutation
3234

3335
# #todo remove unused commands in project
3436
unit:
35-
$(DOCKER) run --rm php74-cli ./vendor/bin/phpunit
3637
$(DOCKER) run --rm php80-cli ./vendor/bin/phpunit
38+
$(DOCKER) run --rm php81-cli ./vendor/bin/phpunit
3739
$(DOCKER) run --rm $(PHP) ./vendor/bin/phpunit
3840

3941
# #todo remove this rule if not needed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.4 || ^8"
21+
"php": "^8"
2222
},
2323
"require-dev": {
24-
"friendsofphp/php-cs-fixer": "^3.11.0",
25-
"infection/infection": "^0.26.13",
26-
"phpstan/phpstan": "^1.8.8",
24+
"friendsofphp/php-cs-fixer": "^3.13.0",
25+
"infection/infection": "^0.26.16",
26+
"phpstan/phpstan": "^1.9.2",
2727
"phpstan/phpstan-strict-rules": "^1.4.4",
28-
"phpunit/phpunit": "^9.5.25",
29-
"vimeo/psalm": "^4.28.0"
28+
"phpunit/phpunit": "^9.5.27",
29+
"vimeo/psalm": "^5.1.0"
3030
},
3131
"autoload": {
3232
"psr-4": {

0 commit comments

Comments
 (0)