Skip to content

Commit

Permalink
Fixes bug for empty api token exception
Browse files Browse the repository at this point in the history
Missing argument 2 for Paynl\Error\Required::__construct(), called in
/src/Error/Required/ApiToken.php on line 33
  • Loading branch information
ivodvb committed Mar 3, 2016
1 parent bd934fc commit 47a1029
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Error/Required.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 47a1029

Please sign in to comment.