src/Viserio/Component/HttpFactory/ServerRequestFactory.php
public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface
    {
        if ($method === '') {
            if (! empty($serverParams['REQUEST_METHOD'])) {
                $method = $serverParams['REQUEST_METHOD'];
            } else {
                throw new InvalidArgumentException('Cannot determine HTTP method.');
            }
        }

        return new ServerRequest(
            $uri,
            $method,
            [],
            new LazyOpenStream('php://temp', 'r+'),
            '1.1',
            $serverParams
        );
    }
public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface
    {
        if ($method === '') {
            if (! empty($serverParams['REQUEST_METHOD'])) {
                $method = $serverParams['REQUEST_METHOD'];
            } else {
                throw new InvalidArgumentException('Cannot determine HTTP method.');
            }
        }

        return new ServerRequest(
            $uri,
            $method,
            [],
            new LazyOpenStream('php://temp', 'r+'),
            '1.1',
            $serverParams
        );
    }
{@inheritdoc}