src/Viserio/Component/HttpFoundation/DataCollector/ViserioHttpDataCollector.php
protected function prepareServerParams(array $params): array
    {
        $preparedParams = [];

        foreach ($params as $key => $value) {
            if (\preg_match('/(_KEY|_PASSWORD|_PW|_SECRET)/', $key)) {
                $preparedParams[$key] = '******';
            } else {
                $preparedParams[$key] = $value;
            }
        }

        return $preparedParams;
    }
protected function prepareServerParams(array $params): array
    {
        $preparedParams = [];

        foreach ($params as $key => $value) {
            if (\preg_match('/(_KEY|_PASSWORD|_PW|_SECRET)/', $key)) {
                $preparedParams[$key] = '******';
            } else {
                $preparedParams[$key] = $value;
            }
        }

        return $preparedParams;
    }
Prepare server parameter.
Hide all keys with a _KEY|_PASSWORD|_PW|_SECRET in it.

@param array $params

@return array