Skip to content

Commit

Permalink
Merge pull request #16 from encreinformatique/patch-1
Browse files Browse the repository at this point in the history
fixed : deprecation of ${var} for PHP8.2
  • Loading branch information
Freaky committed Apr 1, 2024
2 parents 6aad6f0 + cbd1edf commit fc3a0f2
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 fc3a0f2

Please sign in to comment.