Skip to content

Commit ce3d01c

Browse files
authored
Merge pull request #25 from ipinfo/uman/php8
Support PHP 8
2 parents 452cdd3 + fdcd043 commit ce3d01c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ dist: trusty
22
language: php
33

44
php:
5-
- 7.2
65
- 7.3
76
- 7.4
7+
# this is not supported by travisCI as of this commit, but should be very soon.
8+
# - 8.0
89

910
# This triggers builds to run on the new TravisCI infrastructure.
1011
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
### 2.1.0 (December 2 2020)
4+
5+
- Deprecate PHP 7.2 support.
6+
- Add support for PHP 8.0.
7+
38
### 2.0.0 (November 2020)
49

510
- A `guzzle_opts` option is supported in the settings, which allows full Guzzle

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323
],
2424
"require": {
25-
"php": "~7.0",
25+
"php": ">=7.3",
2626
"guzzlehttp/guzzle": "^6.3||^7.0",
2727
"sabre/cache": "^1.0",
2828
"ext-json": "*"
@@ -48,7 +48,7 @@
4848
},
4949
"extra": {
5050
"branch-alias": {
51-
"dev-master": "2.0-dev"
51+
"dev-master": "2.1-dev"
5252
}
5353
},
5454
"config": {

src/IPinfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function getRequestDetails(string $ip_address)
139139
private function buildHeaders()
140140
{
141141
$headers = [
142-
'user-agent' => 'IPinfoClient/PHP/2.0',
142+
'user-agent' => 'IPinfoClient/PHP/2.1',
143143
'accept' => 'application/json',
144144
];
145145

0 commit comments

Comments
 (0)