Skip to content

Commit

Permalink
Merge pull request #25 from ipinfo/uman/php8
Browse files Browse the repository at this point in the history
Support PHP 8
  • Loading branch information
UmanShahzad authored Dec 2, 2020
2 parents 452cdd3 + fdcd043 commit ce3d01c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ dist: trusty
language: php

php:
- 7.2
- 7.3
- 7.4
# this is not supported by travisCI as of this commit, but should be very soon.
# - 8.0

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CHANGELOG

### 2.1.0 (December 2 2020)

- Deprecate PHP 7.2 support.
- Add support for PHP 8.0.

### 2.0.0 (November 2020)

- A `guzzle_opts` option is supported in the settings, which allows full Guzzle
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
],
"require": {
"php": "~7.0",
"php": ">=7.3",
"guzzlehttp/guzzle": "^6.3||^7.0",
"sabre/cache": "^1.0",
"ext-json": "*"
Expand All @@ -48,7 +48,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
"dev-master": "2.1-dev"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion src/IPinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function getRequestDetails(string $ip_address)
private function buildHeaders()
{
$headers = [
'user-agent' => 'IPinfoClient/PHP/2.0',
'user-agent' => 'IPinfoClient/PHP/2.1',
'accept' => 'application/json',
];

Expand Down

0 comments on commit ce3d01c

Please sign in to comment.