Skip to content

Commit 8d95f79

Browse files
Revert "Revert "Feature: PHP 8.0""
1 parent 3d29d68 commit 8d95f79

34 files changed

+812
-1162
lines changed

.github/workflows/auto-updates.yml

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
TARGET:
6262
- alpine
6363
- buster
64+
- bullseye
6465
env:
6566
TARGET: ${{matrix.TARGET}}
6667
steps:

.github/workflows/tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
- name: Install dependencies
3434
run: docker-compose run --rm composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
3535

36-
- name: Run Tests
37-
run: make tests
38-
39-
- name: Psalm Results
40-
run: make psalm
36+
- run: make tests
37+
- run: make psalm
38+
- run: make rector-dry
39+
- run: make phpstan
40+
- run: make ecs-dry
4141

4242
- name: fix code coverage paths
4343
working-directory: ./tests/_output

Makefile

+10-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,22 @@ tests:
1111
run:
1212
@docker-compose run --rm php ./php-version-audit
1313

14+
lint: phpstan psalm rector-dry ecs-dry
15+
1416
phpstan:
1517
@docker-compose run --rm phpstan
1618

1719
psalm:
1820
@docker-compose run --rm --entrypoint=./vendor/bin/psalm php
1921

2022
rector-dry:
21-
@docker run --rm -v $(PWD):/project rector/rector:latest process /project/src --config /project/rector.yml --autoload-file /project/vendor/autoload.php --dry-run
23+
@docker-compose run --rm --entrypoint vendor/bin/rector php process src --dry-run
2224

2325
rector:
24-
@docker run --rm -v $(PWD):/project rector/rector:latest process /project/src --config /project/rector.yml --autoload-file /project/vendor/autoload.php
26+
@docker-compose run --rm --entrypoint vendor/bin/rector php process src
27+
28+
ecs-dry:
29+
@docker-compose run --rm --entrypoint vendor/bin/ecs php
30+
31+
ecs:
32+
@docker-compose run --rm --entrypoint vendor/bin/ecs php --fix

composer.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
},
1212
"require": {
13-
"php": ">=7.4.0",
13+
"php": ">=8.0.0",
1414
"ext-json": "*",
1515
"ext-curl": "*"
1616
},
@@ -20,7 +20,9 @@
2020
"ext-zlib": "*",
2121
"ext-zip": "*",
2222
"codeception/codeception": "^5.0",
23-
"vimeo/psalm": "^5.1",
24-
"codeception/module-asserts": "^3.0"
23+
"vimeo/psalm": "^5.6",
24+
"codeception/module-asserts": "^3.0",
25+
"rector/rector": "^0.15.13",
26+
"symplify/easy-coding-standard": "^11.2"
2527
}
2628
}

0 commit comments

Comments
 (0)