Skip to content

Commit 4e8b9a3

Browse files
authored
Allow Symfony 6 (#38)
1 parent 9b93d3b commit 4e8b9a3

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,28 @@ jobs:
2626
- '3.4.*'
2727
- '4.4.*'
2828
- '5.0.*'
29+
- '6.0.*'
2930
exclude:
3031
- php: '7.2'
3132
symfony: '3.4.*'
3233
dependency: 'lowest'
3334
- php: '7.2'
3435
symfony: '4.4.*'
3536
dependency: 'lowest'
37+
- php: '7.2'
38+
symfony: '6.0.*'
3639
- php: '7.3'
3740
symfony: '3.4.*'
3841
- php: '7.3'
3942
symfony: '4.4.*'
43+
- php: '7.3'
44+
symfony: '6.0.*'
4045
- php: '7.4'
4146
symfony: '3.4.*'
4247
- php: '7.4'
4348
symfony: '4.4.*'
49+
- php: '7.4'
50+
symfony: '6.0.*'
4451
- php: '8.0'
4552
symfony: '3.4.*'
4653
- php: '8.0'
@@ -59,6 +66,10 @@ jobs:
5966
- name: Configure Symfony
6067
run: composer config extra.symfony.require "${{ matrix.symfony }}"
6168

69+
- name: Prefer unstable Composer dependencies if Symfony 6.0
70+
if: matrix.symfony == '6.0.x'
71+
run: composer config prefer-stable false
72+
6273
- name: Get Composer Cache Directory
6374
id: composer-cache
6475
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
/composer.lock
44
/phpspec.yml
55
/phpunit.xml
6+
/.phpunit.result.cache
67
/vendor/

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
],
1212
"require": {
1313
"php": "^5.5 || ^7.0 || ^8.0",
14-
"symfony/dependency-injection": "^3.4 || ^4.3 || ^5.0",
15-
"symfony/framework-bundle": "^3.4 || ^4.3 || ^5.0",
16-
"symfony/http-kernel": "^3.4 || ^4.3 || ^5.0",
17-
"symfony/yaml": "^3.4 || ^4.3 || ^5.0"
14+
"symfony/dependency-injection": "^3.4 || ^4.3 || ^5.0 || ^6.0",
15+
"symfony/framework-bundle": "^3.4 || ^4.3 || ^5.0 || ^6.0",
16+
"symfony/http-kernel": "^3.4 || ^4.3 || ^5.0 || ^6.0",
17+
"symfony/yaml": "^3.4 || ^4.3 || ^5.0 || ^6.0"
1818
},
1919
"require-dev": {
2020
"phpunit/phpunit": "^8.5 || ^9.4"

0 commit comments

Comments
 (0)