src/Helpers/ArrayHelper.php
public static function processTrace(&$trace, $flags = 0) {
        $ignored = [];
        if ($flags & static::IGN_REFLECTION) {
            $ignored = ArrayHelper::merge($ignored, static::IGN_REFLECTION_MASK);
        }
        if ($flags & static::IGN_PROMISES) {
            $ignored = ArrayHelper::merge($ignored, static::IGN_PROMISES_MASK);
        }
        if ($flags & static::IGN_SET_GET) {
            $ignored = ArrayHelper::merge($ignored, static::IGN_SET_GET_MASK);
        }
        $ignoreClosure = $flags & static::IGN_CLOSURE;
        foreach ($trace as $key => &$row) {
            foreach ($ignored as $ignoredRow) {
                if (count(array_diff_assoc($ignoredRow, $row)) === 0) {
                    unset($trace[$key]);
                    continue;
                } elseif ($ignoreClosure && strpos($row['function'], '{closure}') !== false) {
                    unset($trace[$key]);
                    continue;
                }
            }
            if (isset($trace[$key])) {
                static::processTraceArgs($row);
            }
        }
    }
public static function processTrace(&$trace, $flags = 0) {
        $ignored = [];
        if ($flags & static::IGN_REFLECTION) {
            $ignored = ArrayHelper::merge($ignored, static::IGN_REFLECTION_MASK);
        }
        if ($flags & static::IGN_PROMISES) {
            $ignored = ArrayHelper::merge($ignored, static::IGN_PROMISES_MASK);
        }
        if ($flags & static::IGN_SET_GET) {
            $ignored = ArrayHelper::merge($ignored, static::IGN_SET_GET_MASK);
        }
        $ignoreClosure = $flags & static::IGN_CLOSURE;
        foreach ($trace as $key => &$row) {
            foreach ($ignored as $ignoredRow) {
                if (count(array_diff_assoc($ignoredRow, $row)) === 0) {
                    unset($trace[$key]);
                    continue;
                } elseif ($ignoreClosure && strpos($row['function'], '{closure}') !== false) {
                    unset($trace[$key]);
                    continue;
                }
            }
            if (isset($trace[$key])) {
                static::processTraceArgs($row);
            }
        }
    }
Process error trace array (for error printing)
@param array $trace
@param int   $flags Bit mask