@@ -211,11 +211,10 @@ public function testArrayDotIgnoresLastWildcard(): void
211211 }
212212
213213 /**
214- * @param int|string $key
215- * @param array|string|null $expected
214+ * @param array<array-key, mixed>|string|null $expected
216215 */
217216 #[DataProvider('provideArrayDeepSearch ' )]
218- public function testArrayDeepSearch ($ key , $ expected ): void
217+ public function testArrayDeepSearch (int | string $ key , array | string | null $ expected ): void
219218 {
220219 $ data = [
221220 'key1 ' => 'Value 1 ' ,
@@ -241,6 +240,9 @@ public function testArrayDeepSearch($key, $expected): void
241240 $ this ->assertSame ($ expected , $ result );
242241 }
243242
243+ /**
244+ * @return iterable<array{int|string, array<array-key, mixed>|string|null}>
245+ */
244246 public static function provideArrayDeepSearch (): iterable
245247 {
246248 return [
@@ -274,6 +276,11 @@ public function testArrayDeepSearchReturnNullEmptyArray(): void
274276 $ this ->assertNull (array_deep_search ('key644 ' , $ data ));
275277 }
276278
279+ /**
280+ * @param list<array{name: string, position: int, team: array{order: int}}> $data
281+ * @param array<string, int> $sortColumns
282+ * @param list<string> $expected
283+ */
277284 #[DataProvider('provideSortByMultipleKeys ' )]
278285 public function testArraySortByMultipleKeysWithArray (array $ data , array $ sortColumns , array $ expected ): void
279286 {
@@ -283,6 +290,11 @@ public function testArraySortByMultipleKeysWithArray(array $data, array $sortCol
283290 $ this ->assertSame ($ expected , array_column ($ data , 'name ' ));
284291 }
285292
293+ /**
294+ * @param list<array{name: string, position: int, team: array{order: int}}> $data
295+ * @param array<string, int> $sortColumns
296+ * @param list<string> $expected
297+ */
286298 #[DataProvider('provideSortByMultipleKeys ' )]
287299 public function testArraySortByMultipleKeysWithObjects (array $ data , array $ sortColumns , array $ expected ): void
288300 {
@@ -297,6 +309,11 @@ public function testArraySortByMultipleKeysWithObjects(array $data, array $sortC
297309 $ this ->assertSame ($ expected , array_column ($ data , 'name ' ));
298310 }
299311
312+ /**
313+ * @param list<array{name: string, position: int, team: array{order: int}}> $data
314+ * @param array<string, int> $sortColumns
315+ * @param list<string> $expected
316+ */
300317 #[DataProvider('provideSortByMultipleKeys ' )]
301318 public function testArraySortByMultipleKeysFailsEmptyParameter (array $ data , array $ sortColumns , array $ expected ): void
302319 {
@@ -334,6 +351,9 @@ public function testArraySortByMultipleKeysFailsInconsistentArraySizes($data): v
334351 array_sort_by_multiple_keys ($ data , $ sortColumns );
335352 }
336353
354+ /**
355+ * @return iterable<array{list<array{name: string, position: int, team: array{order: int}}>, array<string, int>, list<string>}>
356+ */
337357 public static function provideSortByMultipleKeys (): iterable
338358 {
339359 $ seed = [
@@ -387,12 +407,19 @@ public static function provideSortByMultipleKeys(): iterable
387407 ];
388408 }
389409
410+ /**
411+ * @param array<array-key, mixed> $input
412+ * @param array<string, mixed> $expected
413+ */
390414 #[DataProvider('provideArrayFlattening ' )]
391415 public function testArrayFlattening (array $ input , array $ expected ): void
392416 {
393417 $ this ->assertSame ($ expected , array_flatten_with_dots ($ input ));
394418 }
395419
420+ /**
421+ * @return iterable<string, array{array<array-key, mixed>, array<string, mixed>}>
422+ */
396423 public static function provideArrayFlattening (): iterable
397424 {
398425 yield 'normal ' => [
@@ -485,6 +512,11 @@ public static function provideArrayFlattening(): iterable
485512 ];
486513 }
487514
515+ /**
516+ * @param list<string> $indexes
517+ * @param array<array-key, mixed> $data
518+ * @param array<array-key, mixed> $expected
519+ */
488520 #[DataProvider('provideArrayGroupByIncludeEmpty ' )]
489521 public function testArrayGroupByIncludeEmpty (array $ indexes , array $ data , array $ expected ): void
490522 {
@@ -493,6 +525,9 @@ public function testArrayGroupByIncludeEmpty(array $indexes, array $data, array
493525 $ this ->assertSame ($ expected , $ actual , 'array including empty not the same ' );
494526 }
495527
528+ /**
529+ * @return iterable<string, array{list<string>, array<array-key, mixed>, array<array-key, mixed>}>
530+ */
496531 public static function provideArrayGroupByIncludeEmpty (): iterable
497532 {
498533 yield 'simple group-by test ' => [
@@ -904,6 +939,11 @@ public static function provideArrayGroupByIncludeEmpty(): iterable
904939 ];
905940 }
906941
942+ /**
943+ * @param list<string> $indexes
944+ * @param array<array-key, mixed> $data
945+ * @param array<array-key, mixed> $expected
946+ */
907947 #[DataProvider('provideArrayGroupByExcludeEmpty ' )]
908948 public function testArrayGroupByExcludeEmpty (array $ indexes , array $ data , array $ expected ): void
909949 {
@@ -912,6 +952,9 @@ public function testArrayGroupByExcludeEmpty(array $indexes, array $data, array
912952 $ this ->assertSame ($ expected , $ actual , 'array excluding empty not the same ' );
913953 }
914954
955+ /**
956+ * @return iterable<string, array{list<string>, array<array-key, mixed>, array<array-key, mixed>}>
957+ */
915958 public static function provideArrayGroupByExcludeEmpty (): iterable
916959 {
917960 yield 'simple group-by test ' => [
0 commit comments