Skip to content

Commit cafb5d5

Browse files
committed
widened write type to iterable
1 parent 53d56f8 commit cafb5d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/protocol/AProtocol.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(IPacker $packer, IUnpacker $unpacker, IConnection $c
4343
* @param Generator $generator
4444
* @throws Exception
4545
*/
46-
protected function write(Generator $generator)
46+
protected function write(iterable $generator)
4747
{
4848
foreach ($generator as $buffer)
4949
$this->connection->write($buffer);

0 commit comments

Comments
 (0)