•  
      request #47812 psalm complains about unsafe array assignment in URLVerification.php
    Infos
    #47812
    Thomas Gorka (tgorka)
    2026-08-25 11:58
    2026-08-25 11:58
    49558
    Details
    psalm complains about unsafe array assignment in URLVerification.php
        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.

    Empty
    17.5
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gorka (tgorka)
    Under review
    Empty
    Attachments
    Empty
    References
    References list is empty