Skip to content

Commit d6be96b

Browse files
committed
Fix 5.3 support
1 parent 4260b46 commit d6be96b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Monolog/Handler/SlackWebhookHandler.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ protected function write(array $record)
8181
$postString = json_encode($postData);
8282

8383
$ch = curl_init();
84-
$options = [
84+
$options = array(
8585
CURLOPT_URL => $this->webhookUrl,
8686
CURLOPT_POST => true,
8787
CURLOPT_RETURNTRANSFER => true,
88-
CURLOPT_HTTPHEADER => ['Content-type: application/json'],
88+
CURLOPT_HTTPHEADER => array('Content-type: application/json'),
8989
CURLOPT_POSTFIELDS => $postString
90-
];
90+
);
9191
if (defined('CURLOPT_SAFE_UPLOAD')) {
9292
$options[CURLOPT_SAFE_UPLOAD] = true;
9393
}

0 commit comments

Comments
 (0)