mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Update PHPUnit, run static analysis on tests
This commit is contained in:
		@@ -236,10 +236,13 @@ class OAuthServerException extends \Exception
 | 
			
		||||
                $this->redirectUri .= (strstr($this->redirectUri, '?') === false) ? '?' : '&';
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return $response->withStatus(302)->withHeader('Location', $this->redirectUri . http_build_query($payload));
 | 
			
		||||
            /** @var ResponseInterface $response */
 | 
			
		||||
            $response = $response->withStatus(302)->withHeader('Location', $this->redirectUri . http_build_query($payload));
 | 
			
		||||
            return $response;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        foreach ($headers as $header => $content) {
 | 
			
		||||
            /** @var ResponseInterface $response */
 | 
			
		||||
            $response = $response->withHeader($header, $content);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -35,6 +35,8 @@ class RedirectResponse extends AbstractResponseType
 | 
			
		||||
     */
 | 
			
		||||
    public function generateHttpResponse(ResponseInterface $response)
 | 
			
		||||
    {
 | 
			
		||||
        return $response->withStatus(302)->withHeader('Location', $this->redirectUri);
 | 
			
		||||
        /** @var ResponseInterface $response */
 | 
			
		||||
        $response = $response->withStatus(302)->withHeader('Location', $this->redirectUri);
 | 
			
		||||
        return $response;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user