Skip to content

Commit

Permalink
兼容7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ken678 committed Mar 18, 2022
1 parent 560128b commit 2eeb03e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public static function pluck($array, $value, $key = null)
{
$results = [];

[$value, $key] = static::explodePluckParameters($value, $key);
list($value, $key) = static::explodePluckParameters($value, $key);

foreach ($array as $item) {
$itemValue = data_get($item, $value);
Expand Down

0 comments on commit 2eeb03e

Please sign in to comment.