From ac8d9457b3989f902a8ba1d52c8acce98704903b Mon Sep 17 00:00:00 2001 From: rozwalek Date: Tue, 19 Jun 2018 11:39:57 +0200 Subject: [PATCH] Update CurlPost.php If protected $options not define as ARRAY (defined as NULL), then array_replace return NULL: $this->curl->setoptArray($handle, array_replace($options , $this->options)); --- RequestMethod/CurlPost.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RequestMethod/CurlPost.php b/RequestMethod/CurlPost.php index dda8273..3e307ce 100644 --- a/RequestMethod/CurlPost.php +++ b/RequestMethod/CurlPost.php @@ -25,7 +25,7 @@ class CurlPost implements RequestMethod */ protected $curl; - protected $options; + protected $options = array(); /** * CurlPost constructor. @@ -74,4 +74,4 @@ public function submit(RequestParameters $params) return $response; } -} \ No newline at end of file +}