src/Viserio/Component/HttpFactory/StreamFactory.php
public function createStream(string $content = ''): StreamInterface
    {
        $stream = \fopen('php://memory', 'r+b');

        \fwrite($stream, $content);
        \fseek($stream, 0);

        return Util::createStreamFor($stream);
    }
public function createStream(string $content = ''): StreamInterface
    {
        $stream = \fopen('php://memory', 'r+b');

        \fwrite($stream, $content);
        \fseek($stream, 0);

        return Util::createStreamFor($stream);
    }
{@inheritdoc}