mirror of
https://github.com/predis/predis.git
synced 2026-08-27 18:51:07 +00:00
Fix and reword some exception messages.
This commit is contained in:
@@ -59,7 +59,7 @@ class ComposableStreamConnection extends StreamConnection implements ComposableC
|
||||
public function readBuffer($length)
|
||||
{
|
||||
if ($length <= 0) {
|
||||
throw new \InvalidArgumentException('Length parameter must be greater than 0');
|
||||
throw new \InvalidArgumentException('Length parameter must be greater than 0.');
|
||||
}
|
||||
|
||||
$value = '';
|
||||
@@ -69,7 +69,7 @@ class ComposableStreamConnection extends StreamConnection implements ComposableC
|
||||
$chunk = fread($socket, $length);
|
||||
|
||||
if ($chunk === false || $chunk === '') {
|
||||
$this->onConnectionError('Error while reading bytes from the server');
|
||||
$this->onConnectionError('Error while reading bytes from the server.');
|
||||
}
|
||||
|
||||
$value .= $chunk;
|
||||
@@ -90,7 +90,7 @@ class ComposableStreamConnection extends StreamConnection implements ComposableC
|
||||
$chunk = fgets($socket);
|
||||
|
||||
if ($chunk === false || $chunk === '') {
|
||||
$this->onConnectionError('Error while reading line from the server');
|
||||
$this->onConnectionError('Error while reading line from the server.');
|
||||
}
|
||||
|
||||
$value .= $chunk;
|
||||
|
||||
Reference in New Issue
Block a user