Skip to content

Commit b6962a5

Browse files
committed
Change minimum to PHP 8.1
1 parent 9bf8ccf commit b6962a5

File tree

4 files changed

+37
-15
lines changed

4 files changed

+37
-15
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
end_of_line = lf
7+
8+
[composer.json]
9+
indent_size = 4
10+
11+
[*.js]
12+
indent_size = 4
13+
14+
[*.neon]
15+
indent_size = 4
16+
indent_style = tab
17+
18+
[*.xml]
19+
indent_size = 4
20+
21+
[*.yml]
22+
indent_size = 4

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
operating-system: [ ubuntu-latest ]
11-
php-versions: [ '8.1', '8.2' ]
11+
php-versions: [ '8.0', '8.1', '8.2' ]
1212
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313

1414
steps:
@@ -19,7 +19,7 @@ jobs:
1919
uses: shivammathur/setup-php@v2
2020
with:
2121
php-version: ${{ matrix.php-versions }}
22-
extensions: mbstring, intl, zip
22+
extensions: xml, pcov, mbstring, pdo, pdo_mysql, intl, zip
2323
coverage: none
2424

2525
- name: Check PHP Version
@@ -35,9 +35,7 @@ jobs:
3535
run: composer validate
3636

3737
- name: Install dependencies
38-
run: composer update --prefer-dist --no-progress --ignore-platform-req=php
38+
run: composer install --prefer-dist --no-progress --no-suggest
3939

4040
- name: Run test suite
4141
run: composer test:all
42-
env:
43-
PHP_CS_FIXER_IGNORE_ENV: 1

.scrutinizer.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
filter:
2-
paths: ["src/*"]
3-
excluded_paths: ["vendor/*", "tests/*"]
2+
paths: [ "src/*" ]
3+
excluded_paths: [ "vendor/*", "tests/*" ]
44

55
checks:
66
php:
@@ -12,7 +12,10 @@ tools:
1212

1313
build:
1414
environment:
15-
php: 7.4
15+
php:
16+
version: 8.1.2
17+
ini:
18+
xdebug.mode: coverage
1619
mysql: false
1720
node: false
1821
postgresql: false
@@ -30,11 +33,10 @@ build:
3033
dependencies:
3134
before:
3235
- composer self-update
33-
- composer update --no-interaction --prefer-dist --no-progress
36+
- composer install --no-interaction --prefer-dist --no-progress
3437
tests:
3538
before:
36-
-
37-
command: composer test:coverage
39+
- command: composer test:coverage
3840
coverage:
3941
file: 'build/logs/clover.xml'
4042
format: 'clover'

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
"sort-packages": true
3737
},
3838
"scripts": {
39-
"cs:check": [
39+
"cs:cfix": [
4040
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
41-
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi"
41+
"php-cs-fixer fix --config=.cs.php --ansi --verbose"
4242
],
43-
"cs:fix": [
43+
"cs:check": [
4444
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
45-
"php-cs-fixer fix --config=.cs.php --ansi --verbose"
45+
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi"
4646
],
4747
"sniffer:check": "phpcs --standard=phpcs.xml",
4848
"sniffer:fix": "phpcbf --standard=phpcs.xml",

0 commit comments

Comments
 (0)