Skip to content

Commit 8b6465d

Browse files
committed
Fixup
1 parent 9732c24 commit 8b6465d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Hooks/TestCaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static function afterClassLikeVisit(AfterClassLikeVisitEvent $event)
106106

107107
/**
108108
* {@inheritDoc}
109-
*
109+
*
110110
* @psalm-suppress DeprecatedClass TList will be removed soon
111111
*/
112112
public static function afterStatementAnalysis(AfterClassLikeAnalysisEvent $event)

tests/acceptance/TestCase.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ Feature: TestCase
976976
Given I have the following code
977977
"""
978978
class MyTestCase extends TestCase {
979-
/** @return iterable<string,array{float,1?:string}> */
979+
/** @return iterable<string,array{0: float, 1?:string}> */
980980
public function provide() {
981981
yield "data set" => [1., "a"];
982982
}
@@ -1241,7 +1241,7 @@ Feature: TestCase
12411241
Given I have the following code
12421242
"""
12431243
class MyTestCase extends TestCase {
1244-
/** @return iterable<string, list<int>> */
1244+
/** @return iterable<string, non-empty-list<int>> */
12451245
public function provide(): iterable {
12461246
yield "dataset name" => [1];
12471247
}
@@ -1268,7 +1268,7 @@ Feature: TestCase
12681268
When I run Psalm
12691269
Then I see these errors
12701270
| Type | Message |
1271-
| InvalidArgument | Argument 1 of NS\MyTestCase::testSomething expects int, string provided by NS\MyTestCase::provide():(iterable<string, list<string>>) |
1271+
| InvalidArgument | Argument 1 of NS\MyTestCase::testSomething expects int, string provided by NS\MyTestCase::provide():(iterable<string, non-empty-list<string>>) |
12721272

12731273
Scenario: Providers returning nullable generator are ok
12741274
Given I have the following code

0 commit comments

Comments
 (0)