Skip to content

Commit 20d7c30

Browse files
authored
Enable PHP 8.0 support (#1102)
* 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
1 parent 914b534 commit 20d7c30

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/IP2LocationBinaryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class IP2LocationBinaryTest extends BaseTestCase
2222
{
2323
private $binaryFile;
2424

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

36-
public static function setUpBeforeClass()
36+
public static function setUpBeforeClass(): void
3737
{
3838
if (false == class_exists('\\IP2Location\\Database')) {
3939
self::markTestSkipped('The IP2Location\'s official library required to run these tests.');

Tests/IntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class IntegrationTest extends ProviderIntegrationTest
3232

3333
protected $testHttpProvider = false;
3434

35-
public static function setUpBeforeClass()
35+
public static function setUpBeforeClass(): void
3636
{
3737
if (false == class_exists('\\IP2Location\\Database')) {
3838
self::markTestSkipped('The IP2Location\'s official library required to run these tests.');

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"php": "^7.2",
15+
"php": "^7.3 || ^8.0",
1616
"ip2location/ip2location-php": "^8.1.1",
1717
"willdurand/geocoder": "^4.0"
1818
},

0 commit comments

Comments
 (0)