diff --git a/src/Client.php b/src/Client.php index ca58357..f0849a2 100644 --- a/src/Client.php +++ b/src/Client.php @@ -220,7 +220,14 @@ public function send() try { $options = $this->getStreamOptions(); - stream_context_set_option($this->context, $options); + if (PHP_VERSION_ID >= 80300) + { + stream_context_set_options($this->context, $options); + } + else + { + stream_context_set_option($this->context, $options); + } $message = file_get_contents($this->uri, false, $this->context); $this->throwHttpExceptionOnHttpError($http_response_header);