summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/SparkPost/SparkPostException.php2
-rw-r--r--lib/SparkPost/SparkPostPromise.php2
-rw-r--r--lib/SparkPost/SparkPostResponse.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/SparkPost/SparkPostException.php b/lib/SparkPost/SparkPostException.php
index 8f06845..bde2e5e 100644
--- a/lib/SparkPost/SparkPostException.php
+++ b/lib/SparkPost/SparkPostException.php
@@ -21,7 +21,7 @@ class SparkPostException extends \Exception
*
* @param Exception $exception - the exception to be wrapped
*/
- public function __construct(\Exception $exception, $request)
+ public function __construct(\Exception $exception, $request = null)
{
$this->request = $request;
diff --git a/lib/SparkPost/SparkPostPromise.php b/lib/SparkPost/SparkPostPromise.php
index 6e4ef3f..b7ded0c 100644
--- a/lib/SparkPost/SparkPostPromise.php
+++ b/lib/SparkPost/SparkPostPromise.php
@@ -21,7 +21,7 @@ class SparkPostPromise implements HttpPromise
*
* @param HttpPromise $promise
*/
- public function __construct(HttpPromise $promise, $request)
+ public function __construct(HttpPromise $promise, $request = null)
{
$this->promise = $promise;
$this->request = $request;
diff --git a/lib/SparkPost/SparkPostResponse.php b/lib/SparkPost/SparkPostResponse.php
index 846dff5..402a2b2 100644
--- a/lib/SparkPost/SparkPostResponse.php
+++ b/lib/SparkPost/SparkPostResponse.php
@@ -22,7 +22,7 @@ class SparkPostResponse implements ResponseInterface
*
* @param ResponseInterface $response
*/
- public function __construct(ResponseInterface $response, $request)
+ public function __construct(ResponseInterface $response, $request = null)
{
$this->response = $response;
$this->request = $request;