From 48be39e14f2a3f0c2b7c58c1eb7a708052a5a12e Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Mon, 21 Oct 2024 11:48:21 +0200 Subject: [PATCH] Improve type docblocks --- src/ResourceStream.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ResourceStream.php b/src/ResourceStream.php index c517819..c24fb06 100644 --- a/src/ResourceStream.php +++ b/src/ResourceStream.php @@ -67,7 +67,7 @@ public function unwrap(): mixed * * @throws RuntimeException * - * @return self + * @return self */ public function apply(\Closure $closure): self { @@ -105,6 +105,8 @@ public function uri(): ?string /** * @throws RuntimeException + * + * @return self */ public function rewind(): self { @@ -122,6 +124,8 @@ public function rewind(): self * @param ResourceStream $targetStream * * @throws RuntimeException + * + * @return ResourceStream */ public function copyTo(ResourceStream $targetStream, ?int $length = null, int $offset = 0): ResourceStream { @@ -140,6 +144,8 @@ public function copyTo(ResourceStream $targetStream, ?int $length = null, int $o * @param ResourceStream $sourceStream * * @throws RuntimeException + * + * @return self */ public function copyFrom(ResourceStream $sourceStream, ?int $length = null, int $offset = 0): self { @@ -246,6 +252,8 @@ public function readBatches(int $length = self::DEFAULT_BUFFER_SIZE): \Generator /** * @throws RuntimeException + * + * @return self */ public function write(string $data): self {