mirror of
https://github.com/predis/predis.git
synced 2026-08-24 22:59:24 +00:00
Deprecate the whole Predis\Helpers class.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace Predis\Protocol\Text;
|
||||
|
||||
use Predis\Helpers;
|
||||
use Predis\CommunicationException;
|
||||
use Predis\Connection\ComposableConnectionInterface;
|
||||
use Predis\Protocol\ProtocolException;
|
||||
use Predis\Protocol\ResponseHandlerInterface;
|
||||
@@ -39,7 +39,7 @@ class ResponseIntegerHandler implements ResponseHandlerInterface
|
||||
}
|
||||
|
||||
if ($number !== 'nil') {
|
||||
Helpers::onCommunicationException(new ProtocolException(
|
||||
CommunicationException::handle(new ProtocolException(
|
||||
$connection, "Cannot parse '$number' as numeric response"
|
||||
));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user