Skip to content

Commit 5e2bc34

Browse files
authored
Drop support for PHP 7.0 and PHP 7.1 (End of life) (#1068)
* Drop support for PHP < 7.2 in composer.json * Update .travis.yml Drop PHP 7.0 abd 7.1 Add PHP 7.4 * Normalize composer.json files Using composer-normalize * Normalize composer.json files (1) Using composer-normalize * Fix TomTom testReverseError400 - Will return JSON instead of XML ; - If API error, returns empty address collection ; * Apply fixes from StyleCI * Upgrade to PHPUnit 7 + Upgrade `nyholm/psr7` * Normalize providers Travis config
1 parent e42d3e1 commit 5e2bc34

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ sudo: false
33

44
php: 7.2
55

6-
76
install:
8-
- composer update --prefer-stable --prefer-dist
7+
- composer update --prefer-stable --prefer-dist
98

109
script:
1110
- composer test-ci
1211

1312
after_success:
1413
- wget https://scrutinizer-ci.com/ocular.phar
1514
- php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml
16-

composer.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,24 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.0",
14+
"php": "^7.2",
1515
"geocoder-php/common-http": "^4.0",
1616
"geocoder-php/pelias-provider": "^1.0",
1717
"willdurand/geocoder": "^4.0"
1818
},
19+
"provide": {
20+
"geocoder-php/provider-implementation": "1.0"
21+
},
1922
"require-dev": {
20-
"phpunit/phpunit": "^6.5 || ^7.5",
2123
"geocoder-php/provider-integration-tests": "^1.0",
24+
"php-http/curl-client": "^1.7",
2225
"php-http/message": "^1.0",
23-
"php-http/curl-client": "^1.7"
26+
"phpunit/phpunit": "^7.5"
2427
},
25-
"provide": {
26-
"geocoder-php/provider-implementation": "1.0"
28+
"extra": {
29+
"branch-alias": {
30+
"dev-master": "1.0-dev"
31+
}
2732
},
2833
"autoload": {
2934
"psr-4": {
@@ -33,15 +38,10 @@
3338
"/Tests/"
3439
]
3540
},
41+
"minimum-stability": "dev",
42+
"prefer-stable": true,
3643
"scripts": {
3744
"test": "vendor/bin/phpunit",
3845
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
39-
},
40-
"minimum-stability": "dev",
41-
"prefer-stable": true,
42-
"extra": {
43-
"branch-alias": {
44-
"dev-master": "1.0-dev"
45-
}
4646
}
47-
}
47+
}

0 commit comments

Comments
 (0)