diff --git a/lib/Auth/Source/Discourse.php b/lib/Auth/Source/Discourse.php index e581399..5dc4147 100644 --- a/lib/Auth/Source/Discourse.php +++ b/lib/Auth/Source/Discourse.php @@ -70,7 +70,7 @@ public function __construct(array $info, array $config) * @param array &$state Information about the current authentication. * @return void */ - public function authenticate(&$state) + public function authenticate(array &$state): void { assert(is_array($state)); @@ -102,7 +102,8 @@ public function authenticate(&$state) $discourseSsoUrl = $this->url . "/session/sso_provider?$query"; // Redirect user to Discourse SSO - Utils\HTTP::redirectTrustedURL($discourseSsoUrl); + $httpUtils = new Utils\HTTP(); + $httpUtils->redirectTrustedURL($discourseSsoUrl); }