Skip to content

Commit

Permalink
Added string as return types for __toString
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Golouz committed Feb 25, 2023
1 parent 641e9f8 commit 520dd0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/StreamInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface StreamInterface
* @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
* @return string
*/
public function __toString();
public function __toString(): string;

/**
* Closes the stream and any underlying resources.
Expand Down
2 changes: 1 addition & 1 deletion src/UriInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,5 +320,5 @@ public function withFragment(string $fragment): UriInterface;
* @see http://tools.ietf.org/html/rfc3986#section-4.1
* @return string
*/
public function __toString();
public function __toString(): string;
}

0 comments on commit 520dd0e

Please sign in to comment.