@@ -976,7 +976,7 @@ Feature: TestCase
976
976
Given I have the following code
977
977
"""
978
978
class MyTestCase extends TestCase {
979
- /** @return iterable<string,array{float,1?:string}> */
979
+ /** @return iterable<string,array{0: float, 1?:string}> */
980
980
public function provide() {
981
981
yield "data set" => [1., "a"];
982
982
}
@@ -1241,7 +1241,7 @@ Feature: TestCase
1241
1241
Given I have the following code
1242
1242
"""
1243
1243
class MyTestCase extends TestCase {
1244
- /** @return iterable<string, list<int>> */
1244
+ /** @return iterable<string, non-empty- list<int>> */
1245
1245
public function provide(): iterable {
1246
1246
yield "dataset name" => [1];
1247
1247
}
@@ -1268,7 +1268,7 @@ Feature: TestCase
1268
1268
When I run Psalm
1269
1269
Then I see these errors
1270
1270
| 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 >>) |
1272
1272
1273
1273
Scenario : Providers returning nullable generator are ok
1274
1274
Given I have the following code
0 commit comments