public function verifyRequest($server)
{
$user = $this->getCurrentUser();
if (
$this->getForgeAccess()->doesPlatformRequireLogin() &&
! $user->is_logged_in &&
! $this->isScriptAllowedForAnonymous($server)
) {
$redirect = new URLRedirect($this->getEventManager());
$this->urlChunks['script'] = $redirect->buildReturnToLogin($server);
Unsafe array assignment on type `mixed`.
>Cannot safely assign to index because base type is `mixed`.
The variable being assigned to might not be an array at runtime.
Help: Ensure the variable holds an array before assigning to an index, potentially using type checks or assertions.