Sentry/SanitizeDataProcessor.php
function sanitize(&$item, $key)
    {
        if (empty($item)) {
            return;
        }

        if (preg_match($this->values_re, $item)) {
            $item = self::MASK;
        }

        if (empty($key)) {
            return;
        }

        if (preg_match($this->fields_re, $key)) {
            $item = self::MASK;
        }
    }
function sanitize(&$item, $key)
    {
        if (empty($item)) {
            return;
        }

        if (preg_match($this->values_re, $item)) {
            $item = self::MASK;
        }

        if (empty($key)) {
            return;
        }

        if (preg_match($this->fields_re, $key)) {
            $item = self::MASK;
        }
    }
function sanitize ( & $ item , $ key ) { if ( empty ( $ item ) ) { return ; } if ( preg_match ( $ this -> values_re , $ item ) ) { $ item = self :: MASK ; } if ( empty ( $ key ) ) { return ; } if ( preg_match ( $ this -> fields_re , $ key ) ) { $ item = self :: MASK ; } }
Replace any array values with our mask if the field name or the value matches a respective regex

@param mixed $item       Associative array value
@param string $key       Associative array key
Replace any array values with our mask if the field name or the value matches a respective regex