Skip to content

Commit

Permalink
Remove horribly annoying 5.3 StreamInterface extends bug
Browse files Browse the repository at this point in the history
This was needed because you could not implement two interfaces with a
shared method. In 5.3.8+ it is fixed, so the hack is no longer needed in
5.4.0+.
  • Loading branch information
igorw committed Apr 14, 2013
1 parent affeaed commit 52d6e57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
3 changes: 2 additions & 1 deletion ReadableStreamInterface.php
Expand Up @@ -10,10 +10,11 @@
* @event error
* @event close
*/
interface ReadableStreamInterface extends StreamInterface
interface ReadableStreamInterface extends EventEmitterInterface
{
public function isReadable();
public function pause();
public function resume();
public function pipe(WritableStreamInterface $dest, array $options = array());
public function close();
}
13 changes: 0 additions & 13 deletions StreamInterface.php

This file was deleted.

3 changes: 2 additions & 1 deletion WritableStreamInterface.php
Expand Up @@ -10,9 +10,10 @@
* @event close
* @event pipe
*/
interface WritableStreamInterface extends StreamInterface
interface WritableStreamInterface extends EventEmitterInterface
{
public function isWritable();
public function write($data);
public function end($data = null);
public function close();
}

0 comments on commit 52d6e57

Please sign in to comment.