Skip to content

Commit 438b595

Browse files
Add PHP 8.5 compatibility
1 parent 8d94e3f commit 438b595

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [ 8.2, 8.3, 8.4 ]
12-
dependency-version: [ prefer-lowest, prefer-stable ]
11+
php: [ 8.2, 8.3, 8.4, 8.5 ]
1312

14-
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
13+
name: P${{ matrix.php }}
1514

1615
steps:
1716
- name: Checkout code
@@ -27,10 +26,10 @@ jobs:
2726
uses: actions/cache@v4
2827
with:
2928
path: ~/.composer/cache/files
30-
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
29+
key: qa-${{ hashFiles('composer.json') }}-${{ matrix.php }}-${{ hashFiles('.github/workflows/run-tests.yml') }}
30+
restore-keys: qa-${{ hashFiles('composer.json') }}-${{ matrix.php }}-${{ hashFiles('.github/workflows/run-tests.yml') }}
3131

32-
- name: Install dependencies
33-
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
32+
- uses: ramsey/composer-install@v2
3433

3534
- name: Run PHPStan
3635
run: php vendor/bin/phpstan analyse --no-progress --no-interaction --no-ansi --memory-limit=-1

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"require": {
21-
"php": "8.2.* || 8.3.* || 8.4.*"
21+
"php": "8.2.* || 8.3.* || 8.4.* || 8.5.*"
2222
},
2323
"autoload": {
2424
"psr-4": {

0 commit comments

Comments
 (0)