Skip to content

Commit 5475b5e

Browse files
committed
allow Symfony 5
1 parent 191ee21 commit 5475b5e

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.php_cs.cache
1+
.*.cache
22
bin
33
composer.lock
44
vendor

.travis.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ php:
44
- 7.1
55
- 7.2
66
- 7.3
7+
- 7.4
78
- nightly
89

910
cache:
@@ -14,9 +15,11 @@ matrix:
1415
fast_finish: true
1516
include:
1617
- php: 7.1
17-
env: SYMFONY_VERSION=3.4.* SYMFONY_DEPRECATIONS_HELPER=strict
18+
env: SYMFONY_VERSION=3.4.* SYMFONY_DEPRECATIONS_HELPER=strict COMPOSER_FLAGS="--prefer-lowest"
1819
- php: 7.3
19-
env: SYMFONY_VERSION=4.2.* SYMFONY_DEPRECATIONS_HELPER=strict DEPENDENCIES=dev COMPOSER_FLAGS="--prefer-stable"
20+
env: SYMFONY_VERSION=4.4.*
21+
- php: 7.4
22+
env: SYMFONY_VERSION=5.0.* DEPENDENCIES=dev COMPOSER_FLAGS="--prefer-stable"
2023
allow_failures:
2124
- php: nightly
2225

@@ -27,6 +30,10 @@ env:
2730

2831
before_script:
2932
- composer self-update
30-
- if [ "$SYMFONY_VERSION" != "" ]; then composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update; fi;
33+
- |
34+
if [ "$SYMFONY_VERSION" != "" ]; then
35+
sed -ri 's/"symfony\/(.+)": "(.+)"/"symfony\/\1": "'$SYMFONY_VERSION'"/' composer.json;
36+
fi;
37+
- if [ "$DEPENDENCIES" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
3138

3239
install: composer update $COMPOSER_FLAGS --no-interaction

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
],
1414
"require": {
1515
"php": "^7.1",
16-
"opensoft/doctrine-postgres-types": "^1.2",
17-
"symfony/config": "^3.4 || ^4.1",
18-
"symfony/dependency-injection": "^3.4 || ^4.1",
19-
"symfony/http-kernel": "^3.4 || ^4.1"
16+
"opensoft/doctrine-postgres-types": "^1.3",
17+
"symfony/config": "^3.4 || ^4.3 || ^5.0",
18+
"symfony/dependency-injection": "^3.4 || ^4.3 || ^5.0",
19+
"symfony/http-kernel": "^3.4 || ^4.3 || ^5.0"
2020
},
2121
"require-dev":{
22-
"phpunit/phpunit": "^6.0 || ^7.0"
22+
"phpunit/phpunit": "^7.5 || ^8.5"
2323
},
2424
"autoload": {
2525
"psr-4": {

0 commit comments

Comments
 (0)