mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 20:27:31 +02:00
Fix 5.3 support
This commit is contained in:
@@ -81,13 +81,13 @@ class SlackWebhookHandler extends AbstractProcessingHandler
|
|||||||
$postString = json_encode($postData);
|
$postString = json_encode($postData);
|
||||||
|
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
$options = [
|
$options = array(
|
||||||
CURLOPT_URL => $this->webhookUrl,
|
CURLOPT_URL => $this->webhookUrl,
|
||||||
CURLOPT_POST => true,
|
CURLOPT_POST => true,
|
||||||
CURLOPT_RETURNTRANSFER => true,
|
CURLOPT_RETURNTRANSFER => true,
|
||||||
CURLOPT_HTTPHEADER => ['Content-type: application/json'],
|
CURLOPT_HTTPHEADER => array('Content-type: application/json'),
|
||||||
CURLOPT_POSTFIELDS => $postString
|
CURLOPT_POSTFIELDS => $postString
|
||||||
];
|
);
|
||||||
if (defined('CURLOPT_SAFE_UPLOAD')) {
|
if (defined('CURLOPT_SAFE_UPLOAD')) {
|
||||||
$options[CURLOPT_SAFE_UPLOAD] = true;
|
$options[CURLOPT_SAFE_UPLOAD] = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user