Skip to content

Commit b00fe8c

Browse files
driesvintsreinink
andauthored
PHP 8.2 support (#463)
* Allow PHP 8.2 * Update workflow for PHP 8.2 * Formatting * Set minimum PHP 8.2 versions Co-authored-by: Jonathan Reinink <[email protected]>
1 parent 540b953 commit b00fe8c

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ on:
44
push:
55
pull_request:
66
schedule:
7-
- cron: '0 0 * * *'
7+
- cron: "0 0 * * *"
88

99
jobs:
1010
tests:
1111
runs-on: ubuntu-20.04
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
php: [ 7.2, 7.3, 7.4, '8.0', 8.1 ]
16-
laravel: [ 6, 7, 8, 9 ]
17-
stability: ['prefer-lowest', 'prefer-stable']
15+
php: [7.2, 7.3, 7.4, "8.0", 8.1, 8.2]
16+
laravel: [6, 7, 8, 9]
17+
stability: ["prefer-lowest", "prefer-stable"]
1818
exclude:
1919
- php: 7.2
2020
laravel: 8
@@ -28,6 +28,12 @@ jobs:
2828
laravel: 6
2929
- php: 8.1
3030
laravel: 7
31+
- php: 8.2
32+
laravel: 6
33+
- php: 8.2
34+
laravel: 7
35+
- php: 8.2
36+
laravel: 8
3137

3238
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} (w/ ${{ matrix.stability }})
3339
steps:
@@ -42,7 +48,7 @@ jobs:
4248
ini-values: error_reporting=E_ALL
4349
tools: composer:v2
4450
coverage: none
45-
51+
4652
- name: Set Minimum PHP 8.1 Versions
4753
uses: nick-invision/retry@v1
4854
with:
@@ -52,14 +58,23 @@ jobs:
5258
composer require phpunit/phpunit:^9.5.8 --dev --${{ matrix.stability }} --no-update --no-interaction
5359
composer require vlucas/phpdotenv:^5.3.1 --${{ matrix.stability }} --no-update --no-interaction
5460
if: matrix.php >= 8.1 && matrix.stability == 'prefer-lowest'
55-
61+
62+
- name: Set Minimum PHP 8.2 Versions
63+
uses: nick-invision/retry@v1
64+
with:
65+
timeout_minutes: 5
66+
max_attempts: 5
67+
command: |
68+
composer require nesbot/carbon:^2.62.1 --dev --${{ matrix.stability }} --no-update --no-interaction
69+
if: matrix.php >= 8.2 && matrix.stability == 'prefer-lowest'
70+
5671
- name: Set Laravel version
5772
uses: nick-invision/retry@v1
5873
with:
5974
timeout_minutes: 5
6075
max_attempts: 5
6176
command: composer require "laravel/framework=^${{ matrix.laravel }}" --no-interaction --no-update
62-
77+
6378
- name: Install dependencies
6479
uses: nick-invision/retry@v1
6580
with:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
}
2626
},
2727
"require": {
28-
"php": "^7.2|~8.0.0|~8.1.0",
28+
"php": "^7.2|~8.0.0|~8.1.0|~8.2.0",
2929
"ext-json": "*",
3030
"laravel/framework": "^6.0|^7.0|^8.74|^9.0"
3131
},

0 commit comments

Comments
 (0)