private function isFiltered($key): bool
    {
        foreach ($this->filters as $expression) {
            if (preg_match($expression, $key)) {
                $this->logger->debug(sprintf('"%1$s" is filtered by "%2$s', $key, $expression));
                return true;
            }
        }

        return false;
    }
private function isFiltered($key): bool
    {
        foreach ($this->filters as $expression) {
            if (preg_match($expression, $key)) {
                $this->logger->debug(sprintf('"%1$s" is filtered by "%2$s', $key, $expression));
                return true;
            }
        }

        return false;
    }
private function isFiltered ( $ key ) : bool { foreach ( $ this -> filters as $ expression ) { if ( preg_match ( $ expression , $ key ) ) { $ this -> logger -> debug ( sprintf ( '"%1$s" is filtered by "%2$s' , $ key , $ expression ) ) ; return true ; } } return false ; }
Check if the passed key is filtered by any of the regexes.

@param string $key The key to check.

@return bool
Check if the passed key is filtered by any of the regexes .