diff options
author | Avi Goldman <avrahamymgoldman@gmail.com> | 2017-01-04 12:22:09 -0500 |
---|---|---|
committer | Avi Goldman <avrahamymgoldman@gmail.com> | 2017-01-04 12:22:09 -0500 |
commit | d4f7d4689f6dd619e17ba95f28d8e2ada99719ed (patch) | |
tree | 84ab84369ec535b907811a22502a44a146dffe75 /lib/SparkPost | |
parent | c5b9494cedd45f1013da083b0c072b8d242d22dc (diff) | |
download | php-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.php | 2 | ||||
-rw-r--r-- | lib/SparkPost/SparkPostPromise.php | 2 | ||||
-rw-r--r-- | lib/SparkPost/SparkPostResponse.php | 2 |
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; |