Browse Source

Fix 5.3 support

Jordi Boggiano 8 years ago
parent
commit
d6be96bc3c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Monolog/Handler/SlackWebhookHandler.php

+ 3 - 3
src/Monolog/Handler/SlackWebhookHandler.php

@@ -81,13 +81,13 @@ class SlackWebhookHandler extends AbstractProcessingHandler
         $postString = json_encode($postData);
 
         $ch = curl_init();
-        $options = [
+        $options = array(
             CURLOPT_URL => $this->webhookUrl,
             CURLOPT_POST => true,
             CURLOPT_RETURNTRANSFER => true,
-            CURLOPT_HTTPHEADER => ['Content-type: application/json'],
+            CURLOPT_HTTPHEADER => array('Content-type: application/json'),
             CURLOPT_POSTFIELDS => $postString
-        ];
+        );
         if (defined('CURLOPT_SAFE_UPLOAD')) {
             $options[CURLOPT_SAFE_UPLOAD] = true;
         }