Skip to content

Commit 9a9943d

Browse files
authored
Enable PHPStan Level 6 (#1194)
* Update phpstan.neon * Update YandexTest.php * Update TomTomTest.php * Update PickPointTest.php * Update PickPoint.php * Update PhotonTest.php * Update PeliasTest.php * Update OpenRouteServiceTest.php * Update OpenCageTest.php * Update OpenCage.php * Update NominatimTest.php * Update MaxMindBinaryTest.php * Update MaxMindTest.php * [WIP] Apply PHPStan fixes * Apply PHPCSFixer fixes * [WIP] Apply PHPStan fixes * [WIP] Apply PHPStan fixes * Revert "[WIP] Apply PHPStan fixes" This reverts commit 734c5c52fbcba4bc12cbda07b58d902a79d47891. * [WIP] Apply PHPStan fixes * [WIP] Apply PHPStan fixes * Update phpstan-baseline.neon
1 parent d06cbcf commit 9a9943d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tests/GeoPluginTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919

2020
class GeoPluginTest extends BaseTestCase
2121
{
22-
protected function getCacheDir()
22+
protected function getCacheDir(): string
2323
{
2424
return __DIR__.'/.cached_responses';
2525
}
2626

27-
public function testgetName()
27+
public function testgetName(): void
2828
{
2929
$provider = new GeoPlugin($this->getMockedHttpClient());
3030
$this->assertEquals('geo_plugin', $provider->getName());
3131
}
3232

33-
public function testGeocodeWithAddress()
33+
public function testGeocodeWithAddress(): void
3434
{
3535
$this->expectException(\Geocoder\Exception\UnsupportedOperation::class);
3636
$this->expectExceptionMessage('The GeoPlugin provider does not support street addresses, only IP addresses.');
@@ -39,7 +39,7 @@ public function testGeocodeWithAddress()
3939
$provider->geocodeQuery(GeocodeQuery::create('10 avenue Gambetta, Paris, France'));
4040
}
4141

42-
public function testGeocodeWithLocalhostIPv4()
42+
public function testGeocodeWithLocalhostIPv4(): void
4343
{
4444
$provider = new GeoPlugin($this->getMockedHttpClient());
4545
$results = $provider->geocodeQuery(GeocodeQuery::create('127.0.0.1'));
@@ -52,7 +52,7 @@ public function testGeocodeWithLocalhostIPv4()
5252
$this->assertEquals('localhost', $result->getCountry()->getName());
5353
}
5454

55-
public function testGeocodeWithLocalhostIPv6()
55+
public function testGeocodeWithLocalhostIPv6(): void
5656
{
5757
$provider = new GeoPlugin($this->getMockedHttpClient());
5858
$results = $provider->geocodeQuery(GeocodeQuery::create('::1'));
@@ -65,7 +65,7 @@ public function testGeocodeWithLocalhostIPv6()
6565
$this->assertEquals('localhost', $result->getCountry()->getName());
6666
}
6767

68-
public function testGeocodeWithRealIPv4()
68+
public function testGeocodeWithRealIPv4(): void
6969
{
7070
$provider = new GeoPlugin($this->getHttpClient());
7171
$results = $provider->geocodeQuery(GeocodeQuery::create('66.147.244.214'));
@@ -85,7 +85,7 @@ public function testGeocodeWithRealIPv4()
8585
$this->assertEquals('US', $result->getCountry()->getCode());
8686
}
8787

88-
public function testReverse()
88+
public function testReverse(): void
8989
{
9090
$this->expectException(\Geocoder\Exception\UnsupportedOperation::class);
9191
$this->expectExceptionMessage('The GeoPlugin provider is not able to do reverse geocoding.');

0 commit comments

Comments
 (0)