Skip to content

Commit

Permalink
Merge pull request #2 from phpro/improve-typedocs2
Browse files Browse the repository at this point in the history
Improve type docblocks
  • Loading branch information
veewee authored Oct 21, 2024
2 parents 6519acb + 9888579 commit 65cb294
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/ResourceStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public function __destruct()
}
}

/**
* @return $this
*/
public function keepAlive(): self
{
$this->keepAlive = true;
Expand Down Expand Up @@ -67,7 +70,7 @@ public function unwrap(): mixed
*
* @throws RuntimeException
*
* @return self<resource>
* @return $this
*/
public function apply(\Closure $closure): self
{
Expand Down Expand Up @@ -106,7 +109,7 @@ public function uri(): ?string
/**
* @throws RuntimeException
*
* @return self<resource>
* @return $this
*/
public function rewind(): self
{
Expand Down Expand Up @@ -145,7 +148,7 @@ public function copyTo(ResourceStream $targetStream, ?int $length = null, int $o
*
* @throws RuntimeException
*
* @return self<resource>
* @return $this
*/
public function copyFrom(ResourceStream $sourceStream, ?int $length = null, int $offset = 0): self
{
Expand Down Expand Up @@ -253,7 +256,7 @@ public function readBatches(int $length = self::DEFAULT_BUFFER_SIZE): \Generator
/**
* @throws RuntimeException
*
* @return self<resource>
* @return $this
*/
public function write(string $data): self
{
Expand Down

0 comments on commit 65cb294

Please sign in to comment.