Skip to content

Commit

Permalink
update doAuthentication return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Mc Cormack committed Jan 31, 2019
1 parent e6ad248 commit db32114
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Contract/PardotAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getUserKey(): string;
*
* @return void
*/
public function doAuthentication(): void;
public function doAuthentication();

/**
* Returns the Response object or null on failure
Expand Down
5 changes: 3 additions & 2 deletions src/PardotAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ public function getUserKey(): string
/**
* Performs the login authentication request to return and set the API key
*
* @return void
* @return static
* @throws Exception
*/
public function doAuthentication(): void
public function doAuthentication()
{
try {
$this->authenticated = true;
Expand All @@ -147,6 +147,7 @@ public function doAuthentication(): void
die;
}
}
return $this;
}

/**
Expand Down

0 comments on commit db32114

Please sign in to comment.