Skip to content

Commit

Permalink
Use of array helper removed
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Feb 1, 2019
1 parent 447736c commit 9fa6d0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NestableCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use App;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection as BaseCollection;

class NestableCollection extends Collection
Expand Down Expand Up @@ -79,7 +80,7 @@ public function nest()
}

// Delete moved items.
$this->items = array_values(array_except($collection->items, $keysToDelete));
$this->items = array_values(Arr::except($collection->items, $keysToDelete));

return $this;
}
Expand Down

0 comments on commit 9fa6d0f

Please sign in to comment.