Skip to content

Commit

Permalink
fixed : deprecation of ${var} for PHP8.2
Browse files Browse the repository at this point in the history
` Deprecated: Using ${var} in strings is deprecated, use {$var} instead`
  • Loading branch information
encreinformatique authored Aug 2, 2023
1 parent 6aad6f0 commit cbd1edf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions restclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,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(
Expand All @@ -272,4 +272,4 @@ public function decode_response(){

return $this->decoded_response;
}
}
}

0 comments on commit cbd1edf

Please sign in to comment.