Skip to content

Commit 5fe0d72

Browse files
authored
Merge pull request #13 from BedrockStreaming/feat/symfo54-backward-compatibility
feat: add symfony 5.4 backward compatibility
2 parents 239d2b3 + eb0045a commit 5fe0d72

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
version: [ '8.0', '8.1' ]
10+
php-version: [ '8.0', '8.1' ]
11+
symfony-version: ['^5.4', '^6.0']
1112
fail-fast: false
1213
steps:
1314
- uses: actions/checkout@master
1415
- uses: shivammathur/setup-php@v2
1516
with:
16-
php-version: ${{ matrix.version }}
17+
php-version: ${{ matrix.php-version }}
18+
- run: composer require symfony/symfony:${{ matrix.symfony-version }} --no-update
1719
- run: make install
1820
- run: make ci

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
"require": {
1919
"php": ">=8.0",
2020
"ext-json": "*",
21-
"symfony/config": "^6.0",
22-
"symfony/dependency-injection": "^6.0",
23-
"symfony/event-dispatcher": "^6.0",
24-
"symfony/http-foundation": "^6.0",
25-
"symfony/http-kernel": "^6.0",
26-
"symfony/options-resolver": "^6.0"
21+
"symfony/config": "^5.4 || ^6.0",
22+
"symfony/dependency-injection": "^5.4 || ^6.0",
23+
"symfony/event-dispatcher": "^5.4 || ^6.0",
24+
"symfony/http-foundation": "^5.4 || ^6.0",
25+
"symfony/http-kernel": "^5.4 || ^6.0",
26+
"symfony/options-resolver": "^5.4 || ^6.0"
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "9.5.*",
3030
"m6web/php-cs-fixer-config": "^2.1",
3131
"phpstan/phpstan": "^1.5",
3232
"phpstan/phpstan-phpunit": "^1.1",
33-
"symfony/var-dumper": "^6.0",
33+
"symfony/var-dumper": "^5.4 || ^6.0",
3434
"rector/rector": "^0.12.22"
3535
},
3636
"suggest": {

0 commit comments

Comments
 (0)