Skip to content

Commit 099e09a

Browse files
committed
fix phpstan
1 parent ef3c4c2 commit 099e09a

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -840,11 +840,6 @@ parameters:
840840
count: 1
841841
path: tests/Keboola/GoogleAnalyticsExtractor/ApplicationTest.php
842842

843-
-
844-
message: "#^Method Keboola\\\\GoogleAnalyticsExtractor\\\\ApplicationTest\\:\\:assertManifestContainsColumns\\(\\) has parameter \\$expected with no value type specified in iterable type array\\.$#"
845-
count: 1
846-
path: tests/Keboola/GoogleAnalyticsExtractor/ApplicationTest.php
847-
848843
-
849844
message: "#^Method Keboola\\\\GoogleAnalyticsExtractor\\\\ApplicationTest\\:\\:getConfig\\(\\) return type has no value type specified in iterable type array\\.$#"
850845
count: 1
@@ -855,11 +850,6 @@ parameters:
855850
count: 1
856851
path: tests/Keboola/GoogleAnalyticsExtractor/ApplicationTest.php
857852

858-
-
859-
message: "#^Parameter \\#1 \\$json of function json_decode expects string, string\\|false given\\.$#"
860-
count: 1
861-
path: tests/Keboola/GoogleAnalyticsExtractor/ApplicationTest.php
862-
863853
-
864854
message: "#^Parameter \\#2 \\$array of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) expects array\\|ArrayAccess, mixed given\\.$#"
865855
count: 2

tests/Keboola/GoogleAnalyticsExtractor/ApplicationTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,6 @@ private function getManifestFiles(string $queryName): Finder
117117
;
118118
}
119119

120-
private function assertManifestContainsColumns(string $pathname, array $expected): void
121-
{
122-
$manifest = (array) json_decode(file_get_contents($pathname), true, 512, JSON_THROW_ON_ERROR);
123-
Assert::assertArrayHasKey('columns', $manifest);
124-
Assert::assertEquals($expected, $manifest['columns']);
125-
}
126-
127120
public function appRunDataProvider(): Generator
128121
{
129122
yield 'configRow' => [

0 commit comments

Comments
 (0)