Skip to content

Commit

Permalink
Merge pull request reactphp#13 from mbonneau/master
Browse files Browse the repository at this point in the history
Changed Stream to DuplexStreamInterface in Response::__construct
  • Loading branch information
cboden committed Nov 11, 2014
2 parents fd29b80 + 3c46fa6 commit e465253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace React\HttpClient;

use Evenement\EventEmitterTrait;
use React\Stream\DuplexStreamInterface;
use React\Stream\ReadableStreamInterface;
use React\Stream\Stream;
use React\Stream\Util;
use React\Stream\WritableStreamInterface;

Expand All @@ -25,7 +25,7 @@ class Response implements ReadableStreamInterface
private $headers;
private $readable = true;

public function __construct(Stream $stream, $protocol, $version, $code, $reasonPhrase, $headers)
public function __construct(DuplexStreamInterface $stream, $protocol, $version, $code, $reasonPhrase, $headers)
{
$this->stream = $stream;
$this->protocol = $protocol;
Expand Down

0 comments on commit e465253

Please sign in to comment.