Skip to content

Commit ead2651

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 45aef9f commit ead2651

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tests/PhotonTest.php

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

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

27-
public function testGeocodeWithLocalhostIPv4()
27+
public function testGeocodeWithLocalhostIPv4(): void
2828
{
2929
$this->expectException(\Geocoder\Exception\UnsupportedOperation::class);
3030
$this->expectExceptionMessage('The Photon provider does not support IP addresses.');
@@ -33,7 +33,7 @@ public function testGeocodeWithLocalhostIPv4()
3333
$provider->geocodeQuery(GeocodeQuery::create('127.0.0.1'));
3434
}
3535

36-
public function testGeocodeWithLocalhostIPv6()
36+
public function testGeocodeWithLocalhostIPv6(): void
3737
{
3838
$this->expectException(\Geocoder\Exception\UnsupportedOperation::class);
3939
$this->expectExceptionMessage('The Photon provider does not support IP addresses.');
@@ -42,7 +42,7 @@ public function testGeocodeWithLocalhostIPv6()
4242
$provider->geocodeQuery(GeocodeQuery::create('::1'));
4343
}
4444

45-
public function testGeocodeWithRealIPv6()
45+
public function testGeocodeWithRealIPv6(): void
4646
{
4747
$this->expectException(\Geocoder\Exception\UnsupportedOperation::class);
4848
$this->expectExceptionMessage('The Photon provider does not support IP addresses.');
@@ -51,7 +51,7 @@ public function testGeocodeWithRealIPv6()
5151
$provider->geocodeQuery(GeocodeQuery::create('::ffff:88.188.221.14'));
5252
}
5353

54-
public function testGeocodeQuery()
54+
public function testGeocodeQuery(): void
5555
{
5656
$provider = Photon::withKomootServer($this->getHttpClient());
5757
$results = $provider->geocodeQuery(GeocodeQuery::create('10 avenue Gambetta, Paris, France'));
@@ -80,7 +80,7 @@ public function testGeocodeQuery()
8080
$this->assertEquals('Paris', $result->getDistrict());
8181
}
8282

83-
public function testGeocodeQueryWithNamedResult()
83+
public function testGeocodeQueryWithNamedResult(): void
8484
{
8585
$provider = Photon::withKomootServer($this->getHttpClient());
8686
$results = $provider->geocodeQuery(GeocodeQuery::create('Sherlock Holmes Museum, 221B Baker St, London, England'));
@@ -94,7 +94,7 @@ public function testGeocodeQueryWithNamedResult()
9494
$this->assertEquals('The Sherlock Holmes Museum and shop', $result->getName());
9595
}
9696

97-
public function testReverseQuery()
97+
public function testReverseQuery(): void
9898
{
9999
$provider = Photon::withKomootServer($this->getHttpClient());
100100
$results = $provider->reverseQuery(ReverseQuery::fromCoordinates(52, 10));

0 commit comments

Comments
 (0)