Skip to content

Commit d4f7d46

Browse files
committed
added default for request param in SparkPostResponse and SparkPostException
1 parent c5b9494 commit d4f7d46

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/SparkPost/SparkPostException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SparkPostException extends \Exception
2121
*
2222
* @param Exception $exception - the exception to be wrapped
2323
*/
24-
public function __construct(\Exception $exception, $request)
24+
public function __construct(\Exception $exception, $request = null)
2525
{
2626
$this->request = $request;
2727

lib/SparkPost/SparkPostPromise.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class SparkPostPromise implements HttpPromise
2121
*
2222
* @param HttpPromise $promise
2323
*/
24-
public function __construct(HttpPromise $promise, $request)
24+
public function __construct(HttpPromise $promise, $request = null)
2525
{
2626
$this->promise = $promise;
2727
$this->request = $request;

lib/SparkPost/SparkPostResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class SparkPostResponse implements ResponseInterface
2222
*
2323
* @param ResponseInterface $response
2424
*/
25-
public function __construct(ResponseInterface $response, $request)
25+
public function __construct(ResponseInterface $response, $request = null)
2626
{
2727
$this->response = $response;
2828
$this->request = $request;

0 commit comments

Comments
 (0)