File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public function __construct(
9494 *
9595 * @return string The cookie
9696 */
97- public function __toString ()
97+ public function __toString (): string
9898 {
9999 $ str = ($ this ->isRaw () ? $ this ->getName () : urlencode ($ this ->getName ())) . '= ' ;
100100
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public function __construct(array $data = [])
5252 }
5353 }
5454
55- public function __toString ()
55+ public function __toString (): string
5656 {
5757 $ str = $ this ->data ['Name ' ] . '= ' . $ this ->data ['Value ' ] . '; ' ;
5858 foreach ($ this ->data as $ k => $ v ) {
Original file line number Diff line number Diff line change 1616use InvalidArgumentException ;
1717use Psr \Http \Message \StreamInterface ;
1818use RuntimeException ;
19+ use Stringable ;
1920
2021use function clearstatcache ;
2122use function fclose ;
4243 * Author: Martijn van der Ven <martijn@vanderven.se>.
4344 * @license https://github.com/Nyholm/psr7/blob/master/LICENSE
4445 */
45- final class StandardStream implements StreamInterface
46+ final class StandardStream implements Stringable, StreamInterface
4647{
4748 /** @var array Hash of readable and writable stream types */
4849 private const READ_WRITE_HASH = [
You can’t perform that action at this time.
0 commit comments