From ecb8a4c8f8f26df39a5e528f0681f97c7c796c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin?= Date: Mon, 30 Oct 2023 16:14:24 +0100 Subject: [PATCH] fix return type createStream --- src/Gaufrette/Filesystem.php | 2 +- src/Gaufrette/FilesystemInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gaufrette/Filesystem.php b/src/Gaufrette/Filesystem.php index 168d3429..1d04933d 100644 --- a/src/Gaufrette/Filesystem.php +++ b/src/Gaufrette/Filesystem.php @@ -223,7 +223,7 @@ public function size(string $key): int /** * {@inheritdoc} */ - public function createStream(string $key): Stream|Stream\InMemoryBuffer + public function createStream(string $key): Stream { self::assertValidKey($key); diff --git a/src/Gaufrette/FilesystemInterface.php b/src/Gaufrette/FilesystemInterface.php index c10bae89..2e5c6f2c 100644 --- a/src/Gaufrette/FilesystemInterface.php +++ b/src/Gaufrette/FilesystemInterface.php @@ -120,7 +120,7 @@ public function size(string $key): int; * * @throws \InvalidArgumentException If $key is invalid */ - public function createStream(string $key): Stream|Stream\InMemoryBuffer; + public function createStream(string $key): Stream; /** * Creates a new file in a filesystem.