Skip to content

Commit 7a2dddc

Browse files
authored
Allow key as second argument for LazyCollection#filter (#44031)
1 parent 3665096 commit 7a2dddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Collections/LazyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ public function except($keys)
398398
/**
399399
* Run a filter over each of the items.
400400
*
401-
* @param (callable(TValue): bool)|null $callback
401+
* @param (callable(TValue, TKey): bool)|null $callback
402402
* @return static
403403
*/
404404
public function filter(callable $callback = null)

0 commit comments

Comments
 (0)