From 2cb911ea6f49e45ccb006356af01a6e9af2d6d9b Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 7 Nov 2023 15:02:19 -0500 Subject: [PATCH] - Fix for HttpFactory (more to come) --- src/Factory/HttpFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Factory/HttpFactory.php b/src/Factory/HttpFactory.php index aeec5fa..6f32edc 100644 --- a/src/Factory/HttpFactory.php +++ b/src/Factory/HttpFactory.php @@ -33,9 +33,9 @@ class HttpFactory return new EmptyResponse($code, $headers); } - public static function createPdfResponse(string $binary, int $code = 200, array $headers = []) : ResponseInterface + public static function createPdfResponse(\Stringable $binary, int $code = 200, array $headers = []) : ResponseInterface { - return new PdfResponse($binary, $code, $headers); + return new PdfResponse((string) $binary, $code, $headers); } public static function createDownloadableResponse(string $data, string $filename, int $code = 200, array $headers = []) : ResponseInterface @@ -52,4 +52,4 @@ class HttpFactory { return new FileDownloadResponse($path, $code, $headers); } -} \ No newline at end of file +}