protected function setRequestProperties(
        ServerRequestInterface $baseRequest,
        BrowserKitRequest $request,
        Stream $stream,
        UriInterface $uri,
        array $queryParams
    ) {
        return $baseRequest
            ->withProtocolVersion('1.1')
            ->withBody($stream)
            ->withMethod($request->getMethod())
            ->withRequestTarget((string)($uri->withScheme('')->withHost('')->withPort('')->withUserInfo('')))
            ->withCookieParams($request->getCookies())
            ->withUri($uri)
            ->withQueryParams($queryParams)
            ->withParsedBody($request->getMethod() !== 'GET' && !empty($request->getParameters())
                ? $request->getParameters() : null)
            ->withUploadedFiles($this->convertUploadedFiles($request->getFiles()));
    }
protected function setRequestProperties(
        ServerRequestInterface $baseRequest,
        BrowserKitRequest $request,
        Stream $stream,
        UriInterface $uri,
        array $queryParams
    ) {
        return $baseRequest
            ->withProtocolVersion('1.1')
            ->withBody($stream)
            ->withMethod($request->getMethod())
            ->withRequestTarget((string)($uri->withScheme('')->withHost('')->withPort('')->withUserInfo('')))
            ->withCookieParams($request->getCookies())
            ->withUri($uri)
            ->withQueryParams($queryParams)
            ->withParsedBody($request->getMethod() !== 'GET' && !empty($request->getParameters())
                ? $request->getParameters() : null)
            ->withUploadedFiles($this->convertUploadedFiles($request->getFiles()));
    }
protected function setRequestProperties ( ServerRequestInterface $ baseRequest , BrowserKitRequest $ request , Stream $ stream , UriInterface $ uri , array $ queryParams ) { return $ baseRequest -> withProtocolVersion ( '1.1' ) -> withBody ( $ stream ) -> withMethod ( $ request -> getMethod ( ) ) -> withRequestTarget ( ( string ) ( $ uri -> withScheme ( '' ) -> withHost ( '' ) -> withPort ( '' ) -> withUserInfo ( '' ) ) ) -> withCookieParams ( $ request -> getCookies ( ) ) -> withUri ( $ uri ) -> withQueryParams ( $ queryParams ) -> withParsedBody ( $ request -> getMethod ( ) !== 'GET' && ! empty ( $ request -> getParameters ( ) ) ? $ request -> getParameters ( ) : null ) -> withUploadedFiles ( $ this -> convertUploadedFiles ( $ request -> getFiles ( ) ) ) ; }
Set the server request properties

@param ServerRequestInterface $baseRequest
@param BrowserKitRequest      $request
@param Stream                 $stream
@param UriInterface           $uri
@param array                  $queryParams
@return ServerRequestInterface
Set the server request properties