src/Http/Stack.php
protected function returnResponse(ResponseInterface $response): ResponseInterface
    {
        $this->nextHandler = null;
        reset($this->handlers);
        return $response;
    }
protected function returnResponse(ResponseInterface $response): ResponseInterface
    {
        $this->nextHandler = null;
        reset($this->handlers);
        return $response;
    }
protected function returnResponse ( ResponseInterface $ response ) : ResponseInterface { $ this -> nextHandler = null ; reset ( $ this -> handlers ) ; return $ response ; }
Reset the stack before returning the response,
This allow the stack to be re-handle without throwing exception
@param ResponseInterface $response
@return ResponseInterface
Reset the stack before returning the response This allow the stack to be re - handle without throwing exception