Skip to content

Commit

Permalink
Enable PHP 8.0 support (#1102)
Browse files Browse the repository at this point in the history
* Enable PHP 8.0 support

* Add GitHub Actions

* Upgrade php-http/curl-client + php-http/httplug

* Upgrade PHPUnit

* Drop PHP 7.2 support

* Update GitHub Actions

Remove PHP 7.2

* Update Travis CI

Remove PHP 7.2

* Drop PHP 7.2 support
  • Loading branch information
jbelien committed Dec 19, 2020
1 parent 914b534 commit 20d7c30
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tests/IP2LocationBinaryTest.php
Expand Up @@ -22,7 +22,7 @@ class IP2LocationBinaryTest extends BaseTestCase
{
private $binaryFile;

public function setUp()
public function setUp(): void
{
// Download this BIN database from https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode
$this->binaryFile = __DIR__.'/fixtures/IP2LOCATION-LITE-DB9.IPV6.BIN';
Expand All @@ -33,7 +33,7 @@ protected function getCacheDir()
return __DIR__.'/.cached_responses';
}

public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
if (false == class_exists('\\IP2Location\\Database')) {
self::markTestSkipped('The IP2Location\'s official library required to run these tests.');
Expand Down
2 changes: 1 addition & 1 deletion Tests/IntegrationTest.php
Expand Up @@ -32,7 +32,7 @@ class IntegrationTest extends ProviderIntegrationTest

protected $testHttpProvider = false;

public static function setUpBeforeClass()
public static function setUpBeforeClass(): void
{
if (false == class_exists('\\IP2Location\\Database')) {
self::markTestSkipped('The IP2Location\'s official library required to run these tests.');
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^7.2",
"php": "^7.3 || ^8.0",
"ip2location/ip2location-php": "^8.1.1",
"willdurand/geocoder": "^4.0"
},
Expand Down

0 comments on commit 20d7c30

Please sign in to comment.