diff --git a/src/Contract/PardotAuthenticator.php b/src/Contract/PardotAuthenticator.php index 6310d8c..982aa06 100644 --- a/src/Contract/PardotAuthenticator.php +++ b/src/Contract/PardotAuthenticator.php @@ -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 diff --git a/src/PardotAuthenticator.php b/src/PardotAuthenticator.php index ace3077..ba39845 100644 --- a/src/PardotAuthenticator.php +++ b/src/PardotAuthenticator.php @@ -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; @@ -147,6 +147,7 @@ public function doAuthentication(): void die; } } + return $this; } /**