Explorar o código

Change curl_exec($ch) call to Curl\Util::execute($ch) call, according to pull request.

Alexandr Mazur %!s(int64=6) %!d(string=hai) anos
pai
achega
636ca43ddf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Monolog/Handler/TelegramBotHandler.php

+ 1 - 1
src/Monolog/Handler/TelegramBotHandler.php

@@ -80,7 +80,7 @@ class TelegramBotHandler extends AbstractProcessingHandler
             'chat_id' => $this->channel,
         ]));
 
-        $result = curl_exec($ch);
+        $result = Curl\Util::execute($ch);
         $result = json_decode($result, true);
 
         if ($result['ok'] === false) {