protected function filterValue($value, ?string $filter = null)
    {
        $resolver = $this->getFilterResolver($filter);

        if (\method_exists($resolver[0], $resolver[1])) {
            return $this->callFilterResolver($resolver, $value);
        }

        return $value;
    }
protected function filterValue($value, ?string $filter = null)
    {
        $resolver = $this->getFilterResolver($filter);

        if (\method_exists($resolver[0], $resolver[1])) {
            return $this->callFilterResolver($resolver, $value);
        }

        return $value;
    }
protected function filterValue ( $ value , ? string $ filter = null ) { $ resolver = $ this -> getFilterResolver ( $ filter ) ; if ( \ method_exists ( $ resolver [ 0 ] , $ resolver [ 1 ] ) ) { return $ this -> callFilterResolver ( $ resolver , $ value ) ; } return $ value ; }
Filter value.

@param  mixed   $value
@param  string|null  $filter

@return mixed
Filter value .