Skip to content

Commit 520dd0e

Browse files
author
Aleksandr Golouz
committed
Added string as return types for __toString
1 parent 641e9f8 commit 520dd0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/StreamInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface StreamInterface
2525
* @see http://php.net/manual/en/language.oop5.magic.php#object.tostring
2626
* @return string
2727
*/
28-
public function __toString();
28+
public function __toString(): string;
2929

3030
/**
3131
* Closes the stream and any underlying resources.

src/UriInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,5 +320,5 @@ public function withFragment(string $fragment): UriInterface;
320320
* @see http://tools.ietf.org/html/rfc3986#section-4.1
321321
* @return string
322322
*/
323-
public function __toString();
323+
public function __toString(): string;
324324
}

0 commit comments

Comments
 (0)