Skip to content

Commit 19b56fa

Browse files
authored
Expect a PSR-18 client instead of a PHP-HTTP client (#1110)
* Expect a PSR-18 client instead of a PHP-HTTP client * Update integration tests
1 parent 7ed8057 commit 19b56fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/IntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
use Geocoder\IntegrationTest\ProviderIntegrationTest;
1616
use Geocoder\Provider\IP2LocationBinary\IP2LocationBinary;
17-
use Http\Client\HttpClient;
17+
use Psr\Http\Client\ClientInterface;
1818

1919
/**
2020
* @author IP2Location <[email protected]>
@@ -41,7 +41,7 @@ public static function setUpBeforeClass(): void
4141
parent::setUpBeforeClass();
4242
}
4343

44-
protected function createProvider(HttpClient $httpClient)
44+
protected function createProvider(ClientInterface $httpClient)
4545
{
4646
// Download this BIN database from https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode
4747
return new IP2LocationBinary(__DIR__.'/fixtures/IP2LOCATION-LITE-DB9.IPV6.BIN', \IP2Location\Database::FILE_IO);

0 commit comments

Comments
 (0)