Skip to content

Commit 6dda0b0

Browse files
committed
Transfer channels as strings
1 parent d94f990 commit 6dda0b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Request.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
final class Request
1111
{
1212
private ServerRequestInterface $request;
13-
private Channel $input;
14-
private Channel $output;
13+
private string $input;
14+
private string $output;
1515

1616
public function __construct(ServerRequestInterface $request, Channel $input, Channel $output)
1717
{
1818
$this->request = $request;
19-
$this->input = $input;
20-
$this->output = $output;
19+
$this->input = (string) $input;
20+
$this->output = (string) $output;
2121
}
2222

2323
public function request(): ServerRequestInterface
@@ -27,11 +27,11 @@ public function request(): ServerRequestInterface
2727

2828
public function input(): Channel
2929
{
30-
return $this->input;
30+
return Channel::open($this->input);
3131
}
3232

3333
public function output(): Channel
3434
{
35-
return $this->output;
35+
return Channel::open($this->output);
3636
}
3737
}

0 commit comments

Comments
 (0)