Skip to content

Commit 82ecf1f

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 0bedee9 commit 82ecf1f

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
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: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,36 @@
66
"homepage": "http://geocoder-php.org/Geocoder/",
77
"license": "MIT",
88
"require": {
9-
"php": "^7.0",
9+
"php": "^7.2",
1010
"geocoder-php/common-http": "^4.0",
1111
"willdurand/geocoder": "^4.0"
1212
},
13+
"provide": {
14+
"geocoder-php/provider-implementation": "1.0"
15+
},
1316
"require-dev": {
14-
"phpunit/phpunit": "^6.5 || ^7.5",
1517
"geocoder-php/provider-integration-tests": "^1.0",
18+
"php-http/curl-client": "^1.7",
1619
"php-http/message": "^1.0",
17-
"php-http/curl-client": "^1.7"
20+
"phpunit/phpunit": "^7.5"
1821
},
19-
"provide": {
20-
"geocoder-php/provider-implementation": "1.0"
22+
"extra": {
23+
"branch-alias": {
24+
"dev-master": "1.0-dev"
25+
}
2126
},
2227
"autoload": {
23-
"psr-4": { "Geocoder\\Provider\\GraphHopper\\": "" },
28+
"psr-4": {
29+
"Geocoder\\Provider\\GraphHopper\\": ""
30+
},
2431
"exclude-from-classmap": [
2532
"/Tests/"
2633
]
2734
},
35+
"minimum-stability": "dev",
36+
"prefer-stable": true,
2837
"scripts": {
2938
"test": "vendor/bin/phpunit",
3039
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
31-
},
32-
"minimum-stability": "dev",
33-
"prefer-stable": true,
34-
"extra": {
35-
"branch-alias": {
36-
"dev-master": "1.0-dev"
37-
}
3840
}
39-
}
41+
}

0 commit comments

Comments
 (0)