laravel/framework — pull request #2781 by kapv89 (2013-11-22 15:49:17+00:00)
Title: Changed filter method to create proper indexes in resulting collection

`array_filter` messes up the indices of the resulting array, and the new collection being formed using that method would've had messed up indices. Wrapping the `array_filter` call in `array_values` would solve this issue.