We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25d4492 + 34910d4 commit 507c23cCopy full SHA for 507c23c
src/Utils/ArrayObject.php
@@ -71,8 +71,10 @@ public function filter(callable $callback): self
71
* Run a callable over each item in the array and flatten the results by one level returning a new instance of
72
* `ArrayObject` with the flattened items.
73
*
74
- * @param callable $callback
75
- * @return static
+ * @template TFlatMapReturn of array
+ *
76
+ * @param callable(T): TFlatMapReturn $callback
77
+ * @return static<int|string, mixed>
78
*/
79
public function flatMap(callable $callback): self
80
{
0 commit comments