Skip to content

Commit 93f4508

Browse files
authored
feat(support): upgrade php and symfony support (#6)
1 parent a9d2dfd commit 93f4508

11 files changed

Lines changed: 1849 additions & 1518 deletions

File tree

.github/workflows/styles.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Set up PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.3'
19+
php-version: '8.5'
2020
extensions: mbstring, intl
2121
coverage: none
2222

.github/workflows/test.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,31 @@ jobs:
99
phpunit:
1010
runs-on: ubuntu-latest
1111

12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
php: ['8.2', '8.3', '8.4', '8.5']
16+
symfony: ['6.4.*', '7.1.*', '7.4.*', '8.0.*', '8.1.*']
17+
exclude:
18+
- { php: '8.2', symfony: '8.0.*' }
19+
- { php: '8.2', symfony: '8.1.*' }
20+
- { php: '8.3', symfony: '8.0.*' }
21+
- { php: '8.3', symfony: '8.1.*' }
22+
1223
steps:
1324
- name: Checkout code
14-
uses: actions/checkout@v2
25+
uses: actions/checkout@v4
1526

1627
- name: Set up PHP
1728
uses: shivammathur/setup-php@v2
1829
with:
19-
php-version: '8.3'
30+
php-version: ${{ matrix.php }}
31+
32+
- name: Require Symfony ${{ matrix.symfony }}
33+
run: composer require symfony/framework-bundle:${{ matrix.symfony }} symfony/form:${{ matrix.symfony }} symfony/translation:${{ matrix.symfony }} --no-update
2034

2135
- name: Install dependencies
22-
run: composer install --prefer-dist --no-progress --no-suggest
36+
run: composer update --prefer-dist --no-progress --no-interaction
2337

2438
- name: Run PHPUnit tests
2539
run: vendor/bin/phpunit --testdox

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@
1717
}
1818
],
1919
"require": {
20-
"php": ">=8.3",
20+
"php": ">=8.2",
2121
"doctrine/orm": "^3.2",
2222
"phpoffice/phpspreadsheet": "^2.3.5",
23-
"symfony/form": "^7.1",
24-
"symfony/framework-bundle": "^6.0 || ^7.0",
25-
"symfony/translation": "^7.1"
23+
"symfony/form": "^6.4 || ^7.1 || ^8.0",
24+
"symfony/framework-bundle": "^6.4 || ^7.1 || ^8.0",
25+
"symfony/translation": "^6.4 || ^7.1 || ^8.0"
2626
},
2727
"require-dev": {
28-
"ergebnis/composer-normalize": "^2.44",
28+
"ergebnis/composer-normalize": "^2.52",
2929
"friendsofphp/php-cs-fixer": "^3.64",
30-
"phpro/grumphp": "^2.9",
31-
"phpstan/phpstan": "^1.12",
30+
"phpro/grumphp": "^2.17",
31+
"phpstan/phpstan": "^2.2",
3232
"phpunit/phpunit": "^10.5",
3333
"symfony/test-pack": "^1.0"
3434
},
@@ -56,7 +56,7 @@
5656
},
5757
"symfony": {
5858
"allow-contrib": false,
59-
"require": "6.* || 7.*"
59+
"require": "6.4.* || 7.* || 8.*"
6060
}
6161
},
6262
"scripts": {

0 commit comments

Comments
 (0)