From 4c7fe31a9b6ed5c090ce1a6240dd0be1c98cc10d Mon Sep 17 00:00:00 2001 From: Denis Zakharenko <53209140+denis660@users.noreply.github.com> Date: Tue, 25 Oct 2022 09:35:21 +0600 Subject: [PATCH] Update Centrifugo.php --- src/Centrifugo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Centrifugo.php b/src/Centrifugo.php index 7d4b4ab..6026a8f 100644 --- a/src/Centrifugo.php +++ b/src/Centrifugo.php @@ -342,7 +342,7 @@ protected function send($method, array $params = []) 'http_errors' => true, ]); - if ($url['scheme'] == 'https') { + if (isset($url['scheme']) && $url['scheme'] == 'https') { $config->put('verify', collect($this->config)->get('verify', false)); if (collect($this->config)->get('ssl_key')) {