Skip to content

Commit 65cb294

Browse files
authored
Merge pull request #2 from phpro/improve-typedocs2
Improve type docblocks
2 parents 6519acb + 9888579 commit 65cb294

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/ResourceStream.php

+7-4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public function __destruct()
3838
}
3939
}
4040

41+
/**
42+
* @return $this
43+
*/
4144
public function keepAlive(): self
4245
{
4346
$this->keepAlive = true;
@@ -67,7 +70,7 @@ public function unwrap(): mixed
6770
*
6871
* @throws RuntimeException
6972
*
70-
* @return self<resource>
73+
* @return $this
7174
*/
7275
public function apply(\Closure $closure): self
7376
{
@@ -106,7 +109,7 @@ public function uri(): ?string
106109
/**
107110
* @throws RuntimeException
108111
*
109-
* @return self<resource>
112+
* @return $this
110113
*/
111114
public function rewind(): self
112115
{
@@ -145,7 +148,7 @@ public function copyTo(ResourceStream $targetStream, ?int $length = null, int $o
145148
*
146149
* @throws RuntimeException
147150
*
148-
* @return self<resource>
151+
* @return $this
149152
*/
150153
public function copyFrom(ResourceStream $sourceStream, ?int $length = null, int $offset = 0): self
151154
{
@@ -253,7 +256,7 @@ public function readBatches(int $length = self::DEFAULT_BUFFER_SIZE): \Generator
253256
/**
254257
* @throws RuntimeException
255258
*
256-
* @return self<resource>
259+
* @return $this
257260
*/
258261
public function write(string $data): self
259262
{

0 commit comments

Comments
 (0)