Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Update DocumentFactory.php
Browse files Browse the repository at this point in the history
  • Loading branch information
florentdestremau committed Sep 15, 2022
1 parent e7a398a commit 84898f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DocumentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
namespace TheCodingMachine\Gotenberg;

use GuzzleHttp\Psr7\LazyOpenStream;
use GuzzleHttp\Psr7\Stream;
use Psr\Http\Message\StreamInterface;
use function fopen;
use function fwrite;
use function GuzzleHttp\Psr7\stream_for;

final class DocumentFactory
{
Expand Down Expand Up @@ -36,6 +36,6 @@ public static function makeFromString(string $fileName, string $string): Documen
throw FilesystemException::createFromPhpError();
}

return new Document($fileName, stream_for($fileStream));
return new Document($fileName, new Stream($fileStream));
}
}

0 comments on commit 84898f1

Please sign in to comment.