summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordi Boggiano <j.boggiano@seld.be>2017-06-19 03:13:01 +0200
committerJordi Boggiano <j.boggiano@seld.be>2017-06-19 03:13:01 +0200
commitd6be96bc3c570597c67b5a83ca7968de392a75ac (patch)
tree98691d3e52b1fd0e81d7f39b6fb433abfe294f9b
parent4260b467605950f2de533b43dab15b92324acd2b (diff)
downloadmonolog-d6be96bc3c570597c67b5a83ca7968de392a75ac.zip
monolog-d6be96bc3c570597c67b5a83ca7968de392a75ac.tar.gz
monolog-d6be96bc3c570597c67b5a83ca7968de392a75ac.tar.bz2
Fix 5.3 support
-rw-r--r--src/Monolog/Handler/SlackWebhookHandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Monolog/Handler/SlackWebhookHandler.php b/src/Monolog/Handler/SlackWebhookHandler.php
index 64f88ea..9a1bbb4 100644
--- a/src/Monolog/Handler/SlackWebhookHandler.php
+++ b/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;
}