From fdb19f485f0e34b322b12d6b7716163e9e17ba8d Mon Sep 17 00:00:00 2001 From: Ahmed Alaa Date: Thu, 15 May 2025 21:54:14 +0300 Subject: [PATCH] Add Missing Type Hints --- collections.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collections.md b/collections.md index b7229143263..9bbcf2a15e7 100644 --- a/collections.md +++ b/collections.md @@ -590,7 +590,7 @@ collect(['1', '2'])->containsOneItem(); // false -collect([1, 2, 3])->containsOneItem(fn ($item) => $item === 2); +collect([1, 2, 3])->containsOneItem(fn (int $item) => $item === 2); // true ```