Skip to content

Commit

Permalink
Merge pull request #15 from ivodvb/empty-api-token-fix
Browse files Browse the repository at this point in the history
Fixes bug for empty api token exception
  • Loading branch information
andypieters committed Mar 3, 2016
2 parents 9fa6a79 + 47a1029 commit cef7f32
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 cef7f32

Please sign in to comment.