@@ -96,7 +96,7 @@ class AuthenticationService implements AuthenticationServiceInterface, Impersona
9696 * ]);
9797 * ```
9898 *
99- * @var array
99+ * @var array<string, mixed>
100100 */
101101 protected array $ _defaultConfig = [
102102 'authenticators ' => [],
@@ -218,7 +218,7 @@ public function clearIdentity(ServerRequestInterface $request, ResponseInterface
218218 *
219219 * @param \Psr\Http\Message\ServerRequestInterface $request The request.
220220 * @param \Psr\Http\Message\ResponseInterface $response The response.
221- * @param \ArrayAccess|array $identity Identity data.
221+ * @param \ArrayAccess<string, mixed> |array<string, mixed> $identity Identity data.
222222 * @return array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}
223223 */
224224 public function persistIdentity (
@@ -308,7 +308,7 @@ public function getIdentityAttribute(): string
308308 /**
309309 * Builds the identity object
310310 *
311- * @param \ArrayAccess|array $identityData Identity data
311+ * @param \ArrayAccess<string, mixed> |array<string, mixed> $identityData Identity data
312312 * @return \Authentication\IdentityInterface
313313 */
314314 public function buildIdentity (ArrayAccess |array $ identityData ): IdentityInterface
@@ -375,7 +375,7 @@ public function getUnauthenticatedRedirectUrl(ServerRequestInterface $request):
375375 }
376376 $ query = urlencode ($ param ) . '= ' . urlencode ($ redirect );
377377
378- /** @var array $url */
378+ /** @var array<string, mixed> $url */
379379 $ url = parse_url ($ target );
380380 if (isset ($ url ['query ' ]) && strlen ($ url ['query ' ])) {
381381 $ url ['query ' ] .= '& ' . $ query ;
@@ -470,13 +470,13 @@ protected function validateRedirect(string $redirect): ?string
470470 }
471471
472472 /**
473- * Impersonates a user
473+ * Impersonate a user
474474 *
475475 * @param \Psr\Http\Message\ServerRequestInterface $request The request
476476 * @param \Psr\Http\Message\ResponseInterface $response The response
477- * @param \ArrayAccess $impersonator User who impersonates
478- * @param \ArrayAccess $impersonated User impersonated
479- * @return array
477+ * @param \ArrayAccess<string, mixed> $impersonator User who impersonates
478+ * @param \ArrayAccess<string, mixed> $impersonated User impersonated
479+ * @return array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}
480480 */
481481 public function impersonate (
482482 ServerRequestInterface $ request ,
@@ -494,7 +494,7 @@ public function impersonate(
494494 *
495495 * @param \Psr\Http\Message\ServerRequestInterface $request The request
496496 * @param \Psr\Http\Message\ResponseInterface $response The response
497- * @return array
497+ * @return array{request: \Psr\Http\Message\ServerRequestInterface, response: \Psr\Http\Message\ResponseInterface}
498498 */
499499 public function stopImpersonating (ServerRequestInterface $ request , ResponseInterface $ response ): array
500500 {
0 commit comments