protected function extractTrace($trace)
{
$t = [];
$f = [];
foreach ($trace as $frame) {
// prevent notices about invalid indices, wasn't able to google smart solution, PHP is dumb ass
$frame += ['file' => null, 'line' => null, 'class' => null, 'type' => null, 'function' => null, 'object' => null, 'args' => null];
$t[] = [$frame['file'], $frame['line'], $frame['class'] . $frame['type'] . $frame['function'], $frame['object']];
$f[] = $frame['args'];
}
return [$t, $f];
}