summaryrefslogtreecommitdiffstats
path: root/lib/SparkPost
diff options
context:
space:
mode:
authorAvi Goldman <avrahamymgoldman@gmail.com>2017-01-04 12:22:09 -0500
committerAvi Goldman <avrahamymgoldman@gmail.com>2017-01-04 12:22:09 -0500
commitd4f7d4689f6dd619e17ba95f28d8e2ada99719ed (patch)
tree84ab84369ec535b907811a22502a44a146dffe75 /lib/SparkPost
parentc5b9494cedd45f1013da083b0c072b8d242d22dc (diff)
downloadphp-sparkpost-d4f7d4689f6dd619e17ba95f28d8e2ada99719ed.zip
php-sparkpost-d4f7d4689f6dd619e17ba95f28d8e2ada99719ed.tar.gz
php-sparkpost-d4f7d4689f6dd619e17ba95f28d8e2ada99719ed.tar.bz2
added default for request param in SparkPostResponse and SparkPostException
Diffstat (limited to 'lib/SparkPost')
-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;