Skip to content

Commit 41f6fa6

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 98ce401 commit 41f6fa6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/IntegrationTest.php

+1-1
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 == function_exists('geoip_open')) {
3838
self::markTestSkipped('The maxmind\'s official lib required to run these tests.');

Tests/MaxMindBinaryTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MaxMindBinaryTest extends BaseTestCase
2323
{
2424
private $binaryFile;
2525

26-
public function setUp()
26+
public function setUp(): void
2727
{
2828
$this->binaryFile = __DIR__.'/fixtures/GeoLiteCity.dat';
2929
}
@@ -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 == function_exists('geoip_open')) {
3939
self::markTestSkipped('The maxmind\'s official lib required to run these tests.');

composer.json

+1-1
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
"geoip/geoip": "^1.17",
1717
"willdurand/geocoder": "^4.0"
1818
},

0 commit comments

Comments
 (0)