Skip to content

Commit

Permalink
FrameCollection: fix array_filter mutating the array to be assoc, close
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-sokolov committed Nov 23, 2017
1 parent e9cb04d commit c6081b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Whoops/Exception/FrameCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(array $frames)
*/
public function filter($callable)
{
$this->frames = array_filter($this->frames, $callable);
$this->frames = array_values(array_filter($this->frames, $callable));
return $this;
}

Expand Down

0 comments on commit c6081b8

Please sign in to comment.