From 755c252fdec74bc2fee0632ec19ed741f48e4084 Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Thu, 3 Dec 2009 21:47:48 +0100 Subject: [PATCH] Fixed a small bug in which the short alias for \Predis\Commands\Decrement was wrongly set to 'incr' instead of 'decr' (thanks to Jeff lewwid{at}gmail.com for noticing). The test suite is flawed in this respect since it uses only the extended aliases for commands but the short ones are not checked for correctness. --- lib/Predis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Predis.php b/lib/Predis.php index 98864e63..84a2852a 100644 --- a/lib/Predis.php +++ b/lib/Predis.php @@ -177,7 +177,7 @@ class Client { 'increment' => '\Predis\Commands\Increment', 'incrby' => '\Predis\Commands\IncrementBy', 'incrementBy' => '\Predis\Commands\IncrementBy', - 'incr' => '\Predis\Commands\Decrement', + 'decr' => '\Predis\Commands\Decrement', 'decrement' => '\Predis\Commands\Decrement', 'decrby' => '\Predis\Commands\DecrementBy', 'decrementBy' => '\Predis\Commands\DecrementBy',