Skip to content

Commit

Permalink
fix return type createStream
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinArtus committed Oct 30, 2023
1 parent 61390aa commit ecb8a4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Gaufrette/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/Gaufrette/FilesystemInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ecb8a4c

Please sign in to comment.