From 47a10298ce4980317970707a6aa0d59c768b7d69 Mon Sep 17 00:00:00 2001 From: ivodvb Date: Thu, 3 Mar 2016 16:24:33 +0100 Subject: [PATCH] Fixes bug for empty api token exception Missing argument 2 for Paynl\Error\Required::__construct(), called in /src/Error/Required/ApiToken.php on line 33 --- src/Error/Required.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Error/Required.php b/src/Error/Required.php index 5baa2f69..17bd1895 100644 --- a/src/Error/Required.php +++ b/src/Error/Required.php @@ -26,7 +26,12 @@ */ class Required extends \Exception { - public function __construct($message, $code, Exception $previous) + /*** + * @param string $message + * @param null $code + * @param \Exception|null $previous + */ + public function __construct($message, $code = null, \Exception $previous = null) { $message = "'$message' is required"; parent::__construct($message, $code, $previous);