Skip to content

Commit

Permalink
Dont reuse var
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Oct 5, 2015
1 parent 8a38fd5 commit 885d7ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Raven/Stacktrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static function get_stack_info($frames, $trace = false, $shiftvars = true
}
}

$frame = array(
$data = array(
'abs_path' => $abs_path,
'filename' => $context['filename'],
'lineno' => (int) $context['lineno'],
Expand All @@ -97,10 +97,10 @@ public static function get_stack_info($frames, $trace = false, $shiftvars = true
$cleanVars[$key] = $value;
}
}
$frame['vars'] = $cleanVars;
$data['vars'] = $cleanVars;
}

$result[] = $frame;
$result[] = $data;
}

return array_reverse($result);
Expand Down

0 comments on commit 885d7ee

Please sign in to comment.