Bläddra i källkod

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.

Daniele Alessandri 15 år sedan
förälder
incheckning
755c252fde
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -177,7 +177,7 @@ class Client {
                 'increment'           => '\Predis\Commands\Increment',
                 'increment'           => '\Predis\Commands\Increment',
             'incrby'                  => '\Predis\Commands\IncrementBy',
             'incrby'                  => '\Predis\Commands\IncrementBy',
                 'incrementBy'         => '\Predis\Commands\IncrementBy',
                 'incrementBy'         => '\Predis\Commands\IncrementBy',
-            'incr'                    => '\Predis\Commands\Decrement',
+            'decr'                    => '\Predis\Commands\Decrement',
                 'decrement'           => '\Predis\Commands\Decrement',
                 'decrement'           => '\Predis\Commands\Decrement',
             'decrby'                  => '\Predis\Commands\DecrementBy',
             'decrby'                  => '\Predis\Commands\DecrementBy',
                 'decrementBy'         => '\Predis\Commands\DecrementBy',
                 'decrementBy'         => '\Predis\Commands\DecrementBy',