- Added createStream methods and fixed multiple errors views

This commit is contained in:
mcndave authored and Dave Mc Nicoll committed 2026-06-01 15:22:38 +00:00
1 parent 06c4f46486
commit 7ee4b2d8bb
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -63,6 +63,6 @@ class HttpFactory implements HttpFactoryInterface
public static function createStream(string $content): StreamInterface
{
return (new StreamFactory())->createStream($content);
return new StreamFactory()->createStream($content);
}
}
+1 -1
View File
@@ -18,4 +18,4 @@ interface HttpFactoryInterface
public static function createImageResponse(string $data, int $code = 200, array $headers = []) : ResponseInterface;
public static function createFileDownloadResponse(string $path, int $code = 200, array $headers = []) : ResponseInterface;
public static function createStream(string $content) : StreamInterface;
}
}