Skip to content

Commit

Permalink
Added void as return types
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Golouz committed Feb 25, 2023
1 parent 520dd0e commit 3def521
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/RequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public function getRequestTarget(): string;
*
* @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
* request-target forms allowed in request messages)
* @param mixed $requestTarget
* @param string $requestTarget
* @return static
*/
public function withRequestTarget($requestTarget): RequestInterface;
public function withRequestTarget(string $requestTarget): RequestInterface;

/**
* Retrieves the HTTP method of the request.
Expand Down
6 changes: 3 additions & 3 deletions src/StreamInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __toString(): string;
*
* @return void
*/
public function close();
public function close(): void;

/**
* Separates any underlying resources from the stream.
Expand Down Expand Up @@ -84,7 +84,7 @@ public function isSeekable(): bool;
* SEEK_END: Set position to end-of-stream plus offset.
* @throws \RuntimeException on failure.
*/
public function seek(int $offset, int $whence = SEEK_SET);
public function seek(int $offset, int $whence = SEEK_SET): void;

/**
* Seek to the beginning of the stream.
Expand All @@ -96,7 +96,7 @@ public function seek(int $offset, int $whence = SEEK_SET);
* @link http://www.php.net/manual/en/function.fseek.php
* @throws \RuntimeException on failure.
*/
public function rewind();
public function rewind(): void;

/**
* Returns whether or not the stream is writable.
Expand Down
2 changes: 1 addition & 1 deletion src/UploadedFileInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getStream(): StreamInterface;
* @throws \RuntimeException on any error during the move operation, or on
* the second or subsequent call to the method.
*/
public function moveTo(string $targetPath);
public function moveTo(string $targetPath): void;

/**
* Retrieve the file size.
Expand Down

0 comments on commit 3def521

Please sign in to comment.