Skip to content

Commit af3ced6

Browse files
authored
Merge pull request #4 from lyrixx/up
Drop support of PHP 8.1, Add support of PHP 8.4, and update tooling
2 parents 43d7790 + 2a9034a commit af3ced6

File tree

8 files changed

+2687
-17
lines changed

8 files changed

+2687
-17
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
strategy:
1313
matrix:
1414
php-versions:
15-
- '8.1'
1615
- '8.2'
1716
- '8.3'
17+
- '8.4'
1818

1919
steps:
2020
- uses: actions/checkout@v3
@@ -30,17 +30,44 @@ jobs:
3030
- name: Install dependencies
3131
run: composer install --prefer-dist --no-progress
3232

33+
- name: Run tests
34+
run: composer test
35+
36+
php-cs-fixer:
37+
name: Run PHP CS Fixer
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- uses: actions/checkout@v3
42+
43+
- name: Setup PHP
44+
uses: shivammathur/setup-php@v2
45+
with:
46+
php-version: '8.2'
47+
3348
- name: Install PHP CS Fixer
3449
run: composer install --prefer-dist --no-progress --working-dir=tools/php-cs-fixer
3550

3651
- name: Run PHP CS Fixer
3752
run: composer cs-check
3853

54+
phpstan:
55+
name: Run PHPStan
56+
runs-on: ubuntu-latest
57+
58+
steps:
59+
- uses: actions/checkout@v3
60+
61+
- name: Setup PHP
62+
uses: shivammathur/setup-php@v2
63+
with:
64+
php-version: '8.4'
65+
66+
- name: Install dependencies
67+
run: composer install --prefer-dist --no-progress
68+
3969
- name: Install PHPStan
4070
run: composer install --prefer-dist --no-progress --working-dir=tools/phpstan
4171

4272
- name: Run PHPStan
4373
run: composer phpstan
44-
45-
- name: Run tests
46-
run: composer test

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
.idea
2-
.phpunit.cache
3-
.php-cs-fixer.cache
41
.phpstan-cache
5-
composer.lock
2+
/.php-cs-fixer.cache
3+
/.phpunit.cache
4+
/composer.lock
65
vendor

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Not released yet
44

5+
* Drop support of PHP 8.1
6+
* Add support of PHP 8.4
7+
58
## 0.2.0 (2024-10-02)
69

710
* Remove mb_string extension requirement

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
}
2222
},
2323
"require": {
24-
"php": ">=8.1"
24+
"php": ">=8.2"
25+
},
26+
"require-dev": {
27+
"symfony/phpunit-bridge": "^6.4"
2528
},
2629
"config": {
27-
"sort-packages": true,
2830
"platform": {
29-
"php": "8.1.19"
30-
}
31-
},
32-
"require-dev": {
33-
"symfony/phpunit-bridge": "^6.3.1"
31+
"php": "8.2"
32+
},
33+
"sort-packages": true
3434
},
3535
"scripts": {
3636
"test": "vendor/bin/simple-phpunit",

tools/php-cs-fixer/composer.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"require": {
3-
"friendsofphp/php-cs-fixer": "^3.30"
3+
"friendsofphp/php-cs-fixer": "^3.64"
4+
},
5+
"config": {
6+
"bump-after-update": true,
7+
"platform": {
8+
"php": "8.2"
9+
},
10+
"sort-packages": true
411
}
512
}

0 commit comments

Comments
 (0)