Skip to content

Commit 107dc17

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 d7171e2 commit 107dc17

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
@@ -12,34 +12,36 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^7.0",
15+
"php": "^7.2",
1616
"geocoder-php/common-http": "^4.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": {
29-
"psr-4": { "Geocoder\\Provider\\IP2Location\\": "" },
34+
"psr-4": {
35+
"Geocoder\\Provider\\IP2Location\\": ""
36+
},
3037
"exclude-from-classmap": [
3138
"/Tests/"
3239
]
3340
},
41+
"minimum-stability": "dev",
42+
"prefer-stable": true,
3443
"scripts": {
3544
"test": "vendor/bin/phpunit",
3645
"test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml"
37-
},
38-
"minimum-stability": "dev",
39-
"prefer-stable": true,
40-
"extra": {
41-
"branch-alias": {
42-
"dev-master": "1.0-dev"
43-
}
4446
}
45-
}
47+
}

0 commit comments

Comments
 (0)