We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4260b46 commit d6be96bCopy full SHA for d6be96b
src/Monolog/Handler/SlackWebhookHandler.php
@@ -81,13 +81,13 @@ protected function write(array $record)
81
$postString = json_encode($postData);
82
83
$ch = curl_init();
84
- $options = [
+ $options = array(
85
CURLOPT_URL => $this->webhookUrl,
86
CURLOPT_POST => true,
87
CURLOPT_RETURNTRANSFER => true,
88
- CURLOPT_HTTPHEADER => ['Content-type: application/json'],
+ CURLOPT_HTTPHEADER => array('Content-type: application/json'),
89
CURLOPT_POSTFIELDS => $postString
90
- ];
+ );
91
if (defined('CURLOPT_SAFE_UPLOAD')) {
92
$options[CURLOPT_SAFE_UPLOAD] = true;
93
}
0 commit comments