Skip to content

Commit 84898f1

Browse files
Update DocumentFactory.php
1 parent e7a398a commit 84898f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DocumentFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
namespace TheCodingMachine\Gotenberg;
66

77
use GuzzleHttp\Psr7\LazyOpenStream;
8+
use GuzzleHttp\Psr7\Stream;
89
use Psr\Http\Message\StreamInterface;
910
use function fopen;
1011
use function fwrite;
11-
use function GuzzleHttp\Psr7\stream_for;
1212

1313
final class DocumentFactory
1414
{
@@ -36,6 +36,6 @@ public static function makeFromString(string $fileName, string $string): Documen
3636
throw FilesystemException::createFromPhpError();
3737
}
3838

39-
return new Document($fileName, stream_for($fileStream));
39+
return new Document($fileName, new Stream($fileStream));
4040
}
4141
}

0 commit comments

Comments
 (0)