Skip to content

Commit 8ff15f9

Browse files
authored
Merge pull request #16 from saloonphp/feature/php-8.5
Feature | PHP 8.5 Support
2 parents 9ed8efd + 27c84a9 commit 8ff15f9

File tree

5 files changed

+30
-18
lines changed

5 files changed

+30
-18
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,30 @@ on:
1313
permissions:
1414
contents: write
1515

16+
concurrency:
17+
group: ${{ github.head_ref || github.ref || github.run_id }}_php_cs_fixer
18+
cancel-in-progress: true
19+
1620
jobs:
17-
php-cs-fixer:
21+
lint:
1822
runs-on: ubuntu-latest
19-
2023
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v3
23-
- name: Run PHP CS Fixer
24-
uses: docker://oskarstark/php-cs-fixer-ga
24+
- uses: actions/checkout@v4
25+
26+
- name: Setup PHP
27+
uses: shivammathur/setup-php@v2
2528
with:
26-
args: --config=.php-cs-fixer.dist.php --allow-risky=yes
27-
- name: Commit changes
28-
uses: stefanzweifel/git-auto-commit-action@v4
29+
php-version: '8.2'
30+
31+
- name: Install Dependencies
32+
run: |
33+
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
34+
35+
- name: Run PHP CS Fixer
36+
run: ./vendor/bin/php-cs-fixer fix --allow-risky=yes
37+
38+
- name: Commit Changes
39+
uses: stefanzweifel/git-auto-commit-action@v5
2940
with:
3041
commit_message: 🪄 Code Style Fixes
42+
commit_options: '--no-verify'

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
fail-fast: true
2121
matrix:
2222
os: [ ubuntu-latest, windows-latest ]
23-
php: [ 8.1, 8.2 ]
23+
php: [ 8.2, 8.3, 8.4 ]
2424
stability: [ prefer-lowest, prefer-stable ]
2525

2626
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
2727

2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v5
3131

3232
- name: Setup PHP
3333
uses: shivammathur/setup-php@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ vendor
44
.php-cs-fixer.cache
55
.phpunit.result.cache
66
tests/cache
7+
.phpunit.cache

composer.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@
1717
],
1818
"minimum-stability": "stable",
1919
"require": {
20-
"php": "^8.1",
20+
"php": "^8.2",
2121
"saloonphp/saloon": "^3.0"
2222
},
2323
"require-dev": {
2424
"friendsofphp/php-cs-fixer": "^3.13",
25-
"pestphp/pest": "^2.3",
26-
"spatie/ray": "^1.34.2",
25+
"pestphp/pest": "^2.3 || ^4.0",
2726
"league/flysystem": "^3.12.2",
28-
"orchestra/testbench": "^8.0",
27+
"orchestra/testbench": "^9.15 || ^10.7",
2928
"psr/simple-cache": "^3.0"
3029
},
3130
"scripts": {

src/Data/CachedResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class CachedResponse
1515
* Constructor
1616
*/
1717
public function __construct(
18-
readonly public RecordedResponse $recordedResponse,
19-
readonly public DateTimeImmutable $expiresAt,
20-
readonly public int $ttl,
18+
public readonly RecordedResponse $recordedResponse,
19+
public readonly DateTimeImmutable $expiresAt,
20+
public readonly int $ttl,
2121
) {
2222
//
2323
}

0 commit comments

Comments
 (0)