- Fix for HttpFactory (more to come)

This commit is contained in:
Dave Mc Nicoll 2023-11-07 15:02:19 -05:00
parent 16cd95abe2
commit 2cb911ea6f
1 changed files with 3 additions and 3 deletions

View File

@ -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