Skip to content

Commit 3def521

Browse files
author
Aleksandr Golouz
committed
Added void as return types
1 parent 520dd0e commit 3def521

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/RequestInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public function getRequestTarget(): string;
5555
*
5656
* @link http://tools.ietf.org/html/rfc7230#section-5.3 (for the various
5757
* request-target forms allowed in request messages)
58-
* @param mixed $requestTarget
58+
* @param string $requestTarget
5959
* @return static
6060
*/
61-
public function withRequestTarget($requestTarget): RequestInterface;
61+
public function withRequestTarget(string $requestTarget): RequestInterface;
6262

6363
/**
6464
* Retrieves the HTTP method of the request.

src/StreamInterface.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __toString(): string;
3232
*
3333
* @return void
3434
*/
35-
public function close();
35+
public function close(): void;
3636

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

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

101101
/**
102102
* Returns whether or not the stream is writable.

src/UploadedFileInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getStream(): StreamInterface;
6262
* @throws \RuntimeException on any error during the move operation, or on
6363
* the second or subsequent call to the method.
6464
*/
65-
public function moveTo(string $targetPath);
65+
public function moveTo(string $targetPath): void;
6666

6767
/**
6868
* Retrieve the file size.

0 commit comments

Comments
 (0)