mirror of
https://github.com/predis/predis.git
synced 2026-10-10 13:57:22 +00:00
Rename write and read methods of the composable connection interface.
This commit is contained in:
@@ -48,15 +48,15 @@ class ComposableStreamConnection extends StreamConnection implements ComposableC
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function writeBytes($buffer)
|
||||
public function writeBuffer($buffer)
|
||||
{
|
||||
parent::writeBytes($buffer);
|
||||
$this->write($buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function readBytes($length)
|
||||
public function readBuffer($length)
|
||||
{
|
||||
if ($length <= 0) {
|
||||
throw new \InvalidArgumentException('Length parameter must be greater than 0');
|
||||
|
||||
Reference in New Issue
Block a user