Skip to content

Commit 8d3370a

Browse files
authored
Raise minimum PHP requirements to ^8.0 (#83)
1 parent ff3ccbb commit 8d3370a

6 files changed

Lines changed: 44 additions & 38 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ trim_trailing_whitespace = true
1212

1313
[*.md]
1414
trim_trailing_whitespace = false
15+
16+
[*.yml]
17+
indent_size = 2

.github/workflows/build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ name: build
77
jobs:
88
tests:
99
name: PHP ${{ matrix.php }}-${{ matrix.os }}
10+
1011
env:
1112
extensions: fileinfo, pdo, pdo_sqlite
1213
key: cache-v1
@@ -20,7 +21,6 @@ jobs:
2021
- windows-latest
2122

2223
php:
23-
- "7.4"
2424
- "8.0"
2525

2626
steps:
@@ -52,13 +52,11 @@ jobs:
5252
restore-keys: |
5353
php${{ matrix.php }}-composer-
5454
55-
- name: Install dependencies with composer php 7.4
56-
if: matrix.php == '7.4'
57-
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
55+
- name: Update composer
56+
run: composer self-update
5857

59-
- name: Install dependencies with composer php 8.0
60-
if: matrix.php == '8.0'
61-
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ignore-platform-reqs --ansi
58+
- name: Install dependencies with composer
59+
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
6260

6361
- name: Run tests with codeception
6462
run: |

.github/workflows/static.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- ubuntu-latest
1717

1818
php:
19-
- "7.4"
19+
- "8.0"
2020

2121
steps:
2222
- name: Checkout
@@ -40,8 +40,11 @@ jobs:
4040
restore-keys: |
4141
php${{ matrix.php }}-composer-
4242
43+
- name: Update composer
44+
run: composer self-update
45+
4346
- name: Install dependencies with composer
44-
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader
47+
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
4548

4649
- name: Static analysis
4750
run: vendor/bin/psalm --shepherd --stats --output-format=checkstyle | cs2pr --graceful-warnings --colorize

.scrutinizer.yml

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
checks:
2-
php: true
2+
php: true
33

44
filter:
5-
paths:
6-
- "src/*"
7-
excluded_paths:
8-
- "src/ApplicationRunner.php"
5+
paths:
6+
- "src/*"
7+
excluded_paths:
8+
- "src/ApplicationRunner.php"
99

1010
build:
11-
nodes:
12-
analysis:
13-
environment:
14-
php: 7.4.12
11+
nodes:
12+
analysis:
13+
environment:
14+
php: 8.0.6
1515

16-
tests:
17-
override:
18-
- php-scrutinizer-run
16+
tests:
17+
override:
18+
- php-scrutinizer-run
1919

20-
tests-and-coverage:
21-
environment:
22-
php: 7.4.12
20+
tests-and-coverage:
21+
environment:
22+
php:
23+
version: 8.0.6
24+
ini:
25+
xdebug.mode: coverage
2326

24-
dependencies:
25-
override:
26-
- composer self-update
27-
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
27+
dependencies:
28+
override:
29+
- composer self-update
30+
- composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
2831

29-
tests:
30-
override:
31-
-
32-
command: php -S 127.0.0.1:8080 -t public public/index-test.php > ./runtime/yii.log 2>&1 & vendor/bin/codecept run acceptance --coverage-xml --env github-ci
33-
on_node: 1
34-
coverage:
35-
file: tests/_output/coverage.xml
36-
format: php-clover
32+
tests:
33+
override:
34+
- command: php -S 127.0.0.1:8080 -t public public/index-test.php > ./runtime/yii.log 2>&1 & vendor/bin/codecept run acceptance --coverage-xml --env github-ci
35+
on_node: 1
36+
coverage:
37+
file: tests/_output/coverage.xml
38+
format: php-clover

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"minimum-stability": "dev",
2121
"prefer-stable": true,
2222
"require": {
23-
"php": "^7.4|^8.0",
23+
"php": "^8.0",
2424
"cebe/markdown": "^1.2@dev",
2525
"cycle/orm": "^1.2",
2626
"cycle/proxy-factory": "^1.2",

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3'
33
services:
44
php:
55
container_name: yii-php
6-
image: yiisoftware/yii-php:7.4-fpm
6+
image: yiisoftware/yii-php:8.0-fpm
77
working_dir: /app
88
volumes:
99
- ./:/app

0 commit comments

Comments
 (0)