diff --git a/restclient.php b/restclient.php index 2d55d5e..be90cb7 100755 --- a/restclient.php +++ b/restclient.php @@ -265,7 +265,7 @@ public function decode_response(){ if(empty($this->decoded_response)){ $format = $this->get_response_format(); if(!array_key_exists($format, $this->options['decoders'])) - throw new RestClientException("'${format}' is not a supported ". + throw new RestClientException("'{$format}' is not a supported ". "format, register a decoder to handle this response."); $this->decoded_response = call_user_func(