Skip to content

Commit 747e8c3

Browse files
committed
adds support for PHP 8.5 and symfony 8.0
1 parent aca82f5 commit 747e8c3

29 files changed

+1253
-5429
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ updates:
1010
- "/tools/infection"
1111
- "/tools/phpbench"
1212
- "/tools/phpstan"
13-
- "/tools/psalm"
1413
- package-ecosystem: "github-actions"
1514
directory: "/"
1615
schedule:

.github/workflows/test-suite.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ jobs:
2323
- "8.2"
2424
- "8.3"
2525
- "8.4"
26+
- "8.5"
2627
operating-system:
2728
- "ubuntu-latest"
2829

2930
steps:
3031
- name: "Checkout"
31-
uses: "actions/checkout@v4"
32+
uses: "actions/checkout@v6"
3233

3334
- name: "Install PHP"
3435
uses: "shivammathur/setup-php@v2"
@@ -58,7 +59,7 @@ jobs:
5859

5960
- name: "Install highest dependencies"
6061
if: ${{ matrix.dependencies == 'highest' }}
61-
run: "composer update --no-interaction --no-progress --no-suggest"
62+
run: "composer update --no-interaction --no-progress --no-suggest --ignore-platform-req=php+"
6263

6364
- name: "Install locked dependencies"
6465
if: ${{ matrix.dependencies == 'locked' }}
@@ -72,12 +73,12 @@ jobs:
7273
runs-on: "ubuntu-latest"
7374
steps:
7475
- name: "Checkout"
75-
uses: "actions/checkout@v4"
76+
uses: "actions/checkout@v6"
7677

7778
- name: "Install PHP"
7879
uses: "shivammathur/setup-php@v2"
7980
with:
80-
coverage: "pcov"
81+
coverage: none
8182
php-version: "8.1"
8283
ini-values: memory_limit=-1
8384
tools: composer:v2
@@ -107,14 +108,14 @@ jobs:
107108
runs-on: "ubuntu-latest"
108109
steps:
109110
- name: "Checkout"
110-
uses: "actions/checkout@v4"
111+
uses: "actions/checkout@v6"
111112

112113
- name: "Install PHP"
113114
uses: "shivammathur/setup-php@v2"
114115
with:
115116
coverage: "pcov"
116117
tools: composer:v2
117-
php-version: "8.1"
118+
php-version: "8.2"
118119
ini-values: memory_limit=-1
119120

120121
- name: "Get Composer Cache Directory"
@@ -127,9 +128,9 @@ jobs:
127128
with:
128129
path: |
129130
${{ steps.composer-cache.outputs.dir }}
130-
key: "php-8.1-locked-composer-${{ hashFiles('**/composer.lock') }}"
131+
key: "php-8.2-locked-composer-${{ hashFiles('**/composer.lock') }}"
131132
restore-keys: |
132-
php-8.1-locked-composer-
133+
php-8.2-locked-composer-
133134
134135
- name: "Install locked dependencies"
135136
run: "composer install --no-interaction --no-progress --no-suggest"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ var/
44
.DS_Store
55
.idea
66
.phpunit.cache/
7+
composer.lock

composer.json

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "~8.1 || ~8.2 || ~8.3 || ~8.4",
18+
"php": "~8.1 || ~8.2 || ~8.3 || ~8.4 || ~8.5",
1919
"ext-filter": "*",
2020
"ext-json": "*",
2121
"ext-simplexml": "*",
@@ -24,12 +24,9 @@
2424
"doctrine/lexer": "^3.0"
2525
},
2626
"require-dev": {
27-
"phpunit/phpunit": "^10.4",
27+
"phpunit/phpunit": "^10.5",
2828
"openlss/lib-array2xml": "^1.0",
29-
"symfony/expression-language": "^5.4|^6.4|^7.0",
30-
"symfony/cache": "^5.4|^6.4",
31-
"nikic/php-parser": "^4.0",
32-
"symfony/var-exporter": "^5.4|^6.4|^7.0"
29+
"symfony/expression-language": "^5.4|^6.4|^7.3|^8.0"
3330
},
3431
"suggest": {
3532
"openlss/lib-array2xml": "In order ot use Coduo\\PHPMatcher\\Matcher\\XmlMatcher",
@@ -47,10 +44,7 @@
4744
}
4845
},
4946
"config": {
50-
"sort-packages": true,
51-
"platform": {
52-
"php": "8.1"
53-
}
47+
"sort-packages": true
5448
},
5549
"scripts": {
5650
"benchmark": [
@@ -70,26 +64,23 @@
7064
],
7165
"test:mutation": [
7266
"Composer\\Config::disableProcessTimeout",
73-
"tools\/infection\/vendor\/bin\/infection -j2"
67+
"tools\/infection\/vendor\/bin\/infection --threads=4"
7468
],
7569
"static:analyze": [
7670
"tools\/cs-fixer\/vendor\/bin\/php-cs-fixer fix --dry-run",
77-
"tools\/psalm\/vendor\/bin\/psalm --shepherd --stats",
7871
"tools\/phpstan\/vendor\/bin\/phpstan analyze -c phpstan.neon"
7972
],
8073
"tools:install": [
8174
"composer install --working-dir=./tools/cs-fixer",
8275
"composer install --working-dir=./tools/infection",
8376
"composer install --working-dir=./tools/phpbench",
84-
"composer install --working-dir=./tools/phpstan",
85-
"composer install --working-dir=./tools/psalm --ignore-platform-req=php"
77+
"composer install --working-dir=./tools/phpstan"
8678
],
8779
"tools:update": [
8880
"composer update --working-dir=./tools/cs-fixer",
8981
"composer update --working-dir=./tools/infection",
9082
"composer update --working-dir=./tools/phpbench",
91-
"composer update --working-dir=./tools/phpstan",
92-
"composer update --working-dir=./tools/psalm --ignore-platform-req=php"
83+
"composer update --working-dir=./tools/phpstan"
9384
],
9485
"post-install-cmd": [
9586
"@tools:install"

0 commit comments

Comments
 (0)