code: public function createQueryValidator(
          array $data,
          array $rules,
          array $messages = [],
          array $customAttributes = []
      ) {
          return $this->createValidator(
              $data,
              $rules,
              $messages,
              $customAttributes,
              function ($key, $detail, $failed) {
                  return $this->invalidQueryParameter($key, $detail, $failed);
              }
          );
      }
docs: Create a query validator.
  
  @param array $data
  @param array $rules
  @param array $messages
  @param array $customAttributes
  @return ValidatorInterface