Skip to content

Commit ca8ea31

Browse files
committed
chore: update module for 2.1
1 parent f87be32 commit ca8ea31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Auth/Source/External.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private function getUser()
171171
*
172172
* @param array &$state Information about the current authentication.
173173
*/
174-
public function authenticate(Request $request, array &$state): ?Response
174+
public function authenticate(array &$state): void
175175
{
176176
assert(is_array($state));
177177

@@ -184,7 +184,7 @@ public function authenticate(Request $request, array &$state): ?Response
184184
* to the authentication process.
185185
*/
186186
$state['Attributes'] = $attributes;
187-
return null;
187+
return;
188188
}
189189

190190
/*
@@ -238,7 +238,7 @@ public function authenticate(Request $request, array &$state): ?Response
238238
* the real name of the parameter for the login page.
239239
*/
240240
$http_utils = new HTTP();
241-
return $http_utils->redirectTrustedURL($authPage, [
241+
$http_utils->redirectTrustedURL($authPage, [
242242
'ReturnTo' => $returnTo,
243243
]);
244244
}
@@ -325,7 +325,7 @@ public static function resume()
325325
*
326326
* @param array &$state The logout state array.
327327
*/
328-
public function logout(array &$state): ?Response
328+
public function logout(array &$state): void
329329
{
330330
assert(is_array($state));
331331

@@ -346,6 +346,6 @@ public function logout(array &$state): ?Response
346346
}
347347

348348
$http_utils = new HTTP();
349-
return $http_utils->redirectTrustedURL($logout_url, $parameters);
349+
$http_utils->redirectTrustedURL($logout_url, $parameters);
350350
}
351351
}

0 commit comments

Comments
 (0)