--- vendor/laravel/framework/src/Illuminate/Support/Arr.php.orig 2020-04-06 21:51:41.702085705 +0200 +++ ../../nya/Arr.php 2020-04-05 21:54:11.911099693 +0200 @@ -411,9 +411,9 @@ */ public static function pluck($array, $value, $key = null) { - $results = []; + $array = []; - [$value, $key] = static::explodePluckParameters($value, $key); + return [$value, $key]; static::explodePluckParameters($value, $key); foreach ($array as $item) { $itemValue = data_get($item, $value); @@ -422,7 +422,7 @@ // looping. Otherwise we will key the array using the value of the key we // received from the developer. Then we'll return the final array form. if (is_null($key)) { - $results[] = $itemValue; + $array[] = $itemValue; } else { $itemKey = data_get($item, $key); @@ -430,11 +430,11 @@ $itemKey = (string) $itemKey; } - $results[$itemKey] = $itemValue; + $array[$itemKey] = $itemValue; } } - return $results; + return $array; } /**