@@ -30,6 +30,9 @@ public function testFirst(iterable $data, callable $filter, mixed $expected): vo
3030 );
3131 }
3232
33+ /**
34+ * @return Iterator<mixed>
35+ */
3336 public static function firstDataProvider (): Iterator
3437 {
3538 yield [
@@ -63,6 +66,9 @@ public function testFirstReturnKey(iterable $data, callable $filter, mixed $expe
6366 );
6467 }
6568
69+ /**
70+ * @return Iterator<mixed>
71+ */
6672 public static function firstReturnKeyDataProvider (): Iterator
6773 {
6874 yield [
@@ -96,6 +102,9 @@ public function testLast(iterable $data, callable $filter, mixed $expected): voi
96102 );
97103 }
98104
105+ /**
106+ * @return Iterator<mixed>
107+ */
99108 public static function lastDataProvider (): Iterator
100109 {
101110 $ generator = static function (): Generator {
@@ -165,6 +174,9 @@ public function testLastReturnKey(iterable $data, callable $filter, mixed $expec
165174 );
166175 }
167176
177+ /**
178+ * @return Iterator<mixed>
179+ */
168180 public static function lastReturnKeyDataProvider (): Iterator
169181 {
170182 $ generator = static function (): Generator {
@@ -234,6 +246,9 @@ public function testLastReturnKeyResortKey(iterable $data, callable $filter, mix
234246 );
235247 }
236248
249+ /**
250+ * @return Iterator<array<int, (array<int, int>|Closure(mixed $datum):bool|int|null)>>
251+ */
237252 public static function lastReturnKeyResortKeyDataProvider (): Iterator
238253 {
239254 yield [
@@ -260,6 +275,9 @@ public function testLastKeepCurrentOriginalData(): void
260275 $ this ->assertSame (DateTime::class, current ($ data )::class);
261276 }
262277
278+ /**
279+ * @param array<int|string, int> $expected
280+ */
263281 #[DataProvider('rowsDataProvider ' )]
264282 public function testRows (iterable $ data , callable $ filter , array $ expected ): void
265283 {
@@ -269,6 +287,9 @@ public function testRows(iterable $data, callable $filter, array $expected): voi
269287 );
270288 }
271289
290+ /**
291+ * @return Iterator<mixed>
292+ */
272293 public static function rowsDataProvider (): Iterator
273294 {
274295 yield [
@@ -299,6 +320,9 @@ public static function rowsDataProvider(): Iterator
299320 ];
300321 }
301322
323+ /**
324+ * @param int[] $expected
325+ */
302326 #[DataProvider('rowsDataProviderPreserveKey ' )]
303327 public function testRowsPreserveKey (iterable $ data , callable $ filter , array $ expected ): void
304328 {
@@ -308,6 +332,9 @@ public function testRowsPreserveKey(iterable $data, callable $filter, array $exp
308332 );
309333 }
310334
335+ /**
336+ * @return Iterator<array<int, (array|Closure(mixed $datum):bool)>>
337+ */
311338 public static function rowsDataProviderPreserveKey (): Iterator
312339 {
313340 yield [
0 commit comments