Skip to content

Commit 7167904

Browse files
jbeliennorkunas
andauthored
Add PHPStan in CI (#1193)
* Add PHPStan * Update php.yml * Update composer.json * Fix PHPStan level 0 * Fix PHPStan level 1 * Update phpstan.neon * Fix PHPStan level 2 * Update composer.json * Fix PHPStan level 3 * Fix tests * Fix PHPStan level 4 * Update src/Common/Tests/TimedGeocoderTest.php Co-authored-by: Tomas Norkūnas <[email protected]> * Update src/Provider/Cache/Tests/ProviderCacheTest.php Co-authored-by: Tomas Norkūnas <[email protected]> * Update src/Provider/Cache/Tests/ProviderCacheTest.php Co-authored-by: Tomas Norkūnas <[email protected]> * Update src/Provider/GeoIP2/Tests/GeoIP2Test.php Co-authored-by: Tomas Norkūnas <[email protected]> * Fix PHPStan level 5 * Normalize composer.json * Rename analyse script * Update composer.json * Update IntegrationTest * Update AlgoliaPlacesTest * Update composer.json * Update RequestInterface vs. getParsedResponse() * Update src/Plugin/PluginProvider.php Co-authored-by: Tomas Norkūnas <[email protected]> * Update src/Plugin/PluginProvider.php Co-authored-by: Tomas Norkūnas <[email protected]> * Use PHPStan baseline instead of ignore See https://phpstan.org/user-guide/baseline --------- Co-authored-by: Tomas Norkūnas <[email protected]>
1 parent ccef5da commit 7167904

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/IntegrationTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@
2121
*/
2222
class IntegrationTest extends ProviderIntegrationTest
2323
{
24-
protected $skippedTests = [
24+
protected array $skippedTests = [
2525
'testReverseQueryWithNoResults' => 'Null island exists. ',
2626
];
2727

28-
protected $testIpv4 = false;
28+
protected bool $testIpv4 = false;
2929

30-
protected $testIpv6 = false;
30+
protected bool $testIpv6 = false;
3131

3232
protected function createProvider(ClientInterface $httpClient)
3333
{
3434
return new TomTom($httpClient, $this->getApiKey());
3535
}
3636

37-
protected function getCacheDir()
37+
protected function getCacheDir(): string
3838
{
3939
return __DIR__.'/.cached_responses';
4040
}
4141

42-
protected function getApiKey()
42+
protected function getApiKey(): string
4343
{
4444
return $_SERVER['TOMTOM_MAP_KEY'];
4545
}

0 commit comments

Comments
 (0)