code: protected function handleUnpermittedParam($key, $params)
      {
          if ($this->getThrowExceptions()) {
              $message = "Parameter '$key' is not allowed";
              throw new UnpermittedParameterException($message);
          }
  
          $params->delete($key);
      }
docs: Handle the unpermitted param either by removing it or throwing an exception
  @param  string                    $key
  @param  Parameters                $params
  @throws ParameterMissingException when parameter is missing