Skip to content

Commit 5b61771

Browse files
Baris-SariustaBarisSariustataylorotwell
authored
[12.x] Add missing Closure type to Collection::pluck() docblock (#57178)
* docs(support): include callable in Collection::pluck() PHPDoc * Update Collection.php --------- Co-authored-by: b.sariusta <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent 06cbc6e commit 5b61771

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Collections/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,8 @@ public function last(?callable $callback = null, $default = null)
792792
/**
793793
* Get the values of a given key.
794794
*
795-
* @param string|int|array<array-key, string>|null $value
796-
* @param string|null $key
795+
* @param \Closure|string|int|array<array-key, string>|null $value
796+
* @param \Closure|string|null $key
797797
* @return static<array-key, mixed>
798798
*/
799799
public function pluck($value, $key = null)

0 commit comments

Comments
 (0)