Skip to content

Commit dd0d6fd

Browse files
authored
Add PHP 8.4 support, drop PHP 8.2 (#61)
* Add PHP 8.4 support, drop PHP 8.2 * Nette not yet released for PHP 8.4
1 parent 7ae62f9 commit dd0d6fd

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
php-version:
20-
- "8.2"
20+
- "8.3"
2121

2222
steps:
2323
- uses: "actions/checkout@v4"
@@ -27,7 +27,7 @@ jobs:
2727
php-version: "${{ matrix.php-version }}"
2828
ini-values: "${{ env.INI_VALUES }}"
2929
tools: composer-normalize,composer-require-checker
30-
- uses: "ramsey/composer-install@v2"
30+
- uses: "ramsey/composer-install@v3"
3131

3232
- run: "composer validate --strict"
3333
- run: "composer-normalize --dry-run"
@@ -39,11 +39,11 @@ jobs:
3939
strategy:
4040
matrix:
4141
php-version:
42-
- "8.3"
42+
- "8.4"
4343
code-coverage:
4444
- "none"
4545
include:
46-
- php-version: "8.2"
46+
- php-version: "8.3"
4747
code-coverage: "pcov"
4848

4949
steps:
@@ -53,7 +53,9 @@ jobs:
5353
coverage: "${{ matrix.code-coverage }}"
5454
php-version: "${{ matrix.php-version }}"
5555
ini-values: "${{ env.INI_VALUES }}"
56-
- uses: "ramsey/composer-install@v2"
56+
- uses: "ramsey/composer-install@v3"
57+
with:
58+
composer-options: "--ignore-platform-req=php"
5759

5860
- run: "vendor/bin/phpunit --no-coverage --no-logging"
5961
if: ${{ matrix.code-coverage == 'none' }}
@@ -77,7 +79,7 @@ jobs:
7779
strategy:
7880
matrix:
7981
php-version:
80-
- "8.2"
82+
- "8.3"
8183

8284
steps:
8385
- uses: "actions/checkout@v4"
@@ -86,7 +88,7 @@ jobs:
8688
coverage: "none"
8789
php-version: "${{ matrix.php-version }}"
8890
ini-values: "${{ env.INI_VALUES }}"
89-
- uses: "ramsey/composer-install@v2"
91+
- uses: "ramsey/composer-install@v3"
9092

9193
- run: "vendor/bin/php-cs-fixer fix --verbose --dry-run --diff"
9294

@@ -96,7 +98,7 @@ jobs:
9698
strategy:
9799
matrix:
98100
php-version:
99-
- "8.2"
101+
- "8.3"
100102

101103
steps:
102104
- uses: "actions/checkout@v4"
@@ -105,6 +107,6 @@ jobs:
105107
coverage: "none"
106108
php-version: "${{ matrix.php-version }}"
107109
ini-values: "${{ env.INI_VALUES }}"
108-
- uses: "ramsey/composer-install@v2"
110+
- uses: "ramsey/composer-install@v3"
109111

110112
- run: "vendor/bin/phpstan analyse --no-progress --error-format=github"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DOCKER_PHP_EXEC := docker compose run php
1+
DOCKER_PHP_EXEC := docker compose run --rm php
22
PHP_BIN=php -d zend.assertions=1
33

44
all: csfix static-analysis test

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
}
1212
],
1313
"require": {
14-
"php": "~8.2.0 || ~8.3.0",
14+
"php": "~8.3.0 || ~8.4.0",
1515
"phpstan/phpstan": "^1.12.4"
1616
},
1717
"require-dev": {
1818
"nette/di": "^3.2.2",
1919
"nette/neon": "^3.4.3",
20-
"nikic/php-parser": "^4.19.1 || ^5.0.2",
20+
"nikic/php-parser": "^4.19.2 || ^5.2.0",
2121
"phpstan/phpstan-phpunit": "^1.4.0",
2222
"phpunit/phpunit": "^11.3.6",
23-
"slam/php-cs-fixer-extensions": "^3.11.1"
23+
"slam/php-cs-fixer-extensions": "^3.12.0"
2424
},
2525
"autoload": {
2626
"psr-4": {

0 commit comments

Comments
 (0)