Commit cf29450b authored by Taylor Otwell's avatar Taylor Otwell

Fix bug in array_pluck helper.

parent 7af5afc4
...@@ -238,7 +238,7 @@ function array_divide($array) ...@@ -238,7 +238,7 @@ function array_divide($array)
*/ */
function array_pluck($array, $key) function array_pluck($array, $key)
{ {
return array_map(function($v) return array_map(function($v) use ($key)
{ {
return is_object($v) ? $v->$key : $v[$key]; return is_object($v) ? $v->$key : $v[$key];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment