Skip to content

Commit 9be8f67

Browse files
committed
Add static for Display\ResultsTest::dataProviderSortOrder()
PHPUnit 10 warns that data providers should be static methods. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
1 parent aac7aab commit 9be8f67

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10290,11 +10290,6 @@ parameters:
1029010290
count: 1
1029110291
path: test/classes/Display/ResultsTest.php
1029210292

10293-
-
10294-
message: "#^Method PhpMyAdmin\\\\Tests\\\\Display\\\\ResultsTest\\:\\:dataProviderSortOrder\\(\\) return type has no value type specified in iterable type array\\.$#"
10295-
count: 1
10296-
path: test/classes/Display/ResultsTest.php
10297-
1029810293
-
1029910294
message: "#^Method PhpMyAdmin\\\\Tests\\\\Display\\\\ResultsTest\\:\\:providerSetConfigParamsForDisplayTable\\(\\) return type has no value type specified in iterable type array\\.$#"
1030010295
count: 1

psalm-baseline.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16852,11 +16852,6 @@
1685216852
<code>array</code>
1685316853
<code>array</code>
1685416854
</MixedInferredReturnType>
16855-
<PossiblyInvalidArgument>
16856-
<code>testGetSingleAndMultiSortUrls</code>
16857-
<code>testGetSingleAndMultiSortUrls</code>
16858-
<code>testGetSingleAndMultiSortUrls</code>
16859-
</PossiblyInvalidArgument>
1686016855
</file>
1686116856
<file src="test/classes/Engines/PbxtTest.php">
1686216857
<MixedInferredReturnType>

test/classes/Display/ResultsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,9 +1807,9 @@ public function testGetTable2(): void
18071807
}
18081808

18091809
/**
1810-
* @return array[]
1810+
* @return array<string, array{string, string, int}>
18111811
*/
1812-
public function dataProviderSortOrder(): array
1812+
public static function dataProviderSortOrder(): array
18131813
{
18141814
return [
18151815
'Default date' => [

0 commit comments

Comments
 (0)