mirror of
https://github.com/predis/predis.git
synced 2026-09-12 19:37:05 +00:00
Apply minor CS fixes.
[ci skip]
This commit is contained in:
@@ -141,8 +141,8 @@ class Client implements ClientInterface
|
||||
* Wraps a callable to make sure that its returned value represents a valid
|
||||
* connection type.
|
||||
*
|
||||
* @param mixed $callable
|
||||
* @return mixed
|
||||
* @param mixed $callable
|
||||
* @return \Closure
|
||||
*/
|
||||
protected function getConnectionInitializerWrapper($callable)
|
||||
{
|
||||
@@ -333,10 +333,8 @@ class Client implements ClientInterface
|
||||
* @param ErrorResponseInterface $response Instance of the error response.
|
||||
* @return mixed
|
||||
*/
|
||||
protected function onErrorResponse(
|
||||
CommandInterface $command,
|
||||
ErrorResponseInterface $response
|
||||
) {
|
||||
protected function onErrorResponse(CommandInterface $command, ErrorResponseInterface $response)
|
||||
{
|
||||
if ($command instanceof ScriptCommand && $response->getErrorType() === 'NOSCRIPT') {
|
||||
$eval = $this->createCommand('eval');
|
||||
$eval->setRawArguments($command->getEvalArguments());
|
||||
|
||||
Reference in New Issue
Block a user