Skip to content

Commit 27f8cdb

Browse files
committed
[Stream]
Documented why new `StreamInterface` exists
1 parent 3214f56 commit 27f8cdb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

StreamInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
use Evenement\EventEmitterInterface;
66

7+
// This class exists because ReadableStreamInterface and WritableStreamInterface
8+
// both need close methods.
9+
// In PHP <= 5.3.8 a class can not implement 2 interfaces with coincidental matching methods
710
interface StreamInterface extends EventEmitterInterface
811
{
912
public function close();

0 commit comments

Comments
 (0)