protected function invalidOptions(array $curlOptions = array(), $errorMsg = '') { throw new \OutOfBoundsException(sprintf('AlgoliaSearch %s options keys are invalid. %s given. error message : %s', static::CURLOPT, Json::encode($curlOptions), $errorMsg)); }