Эх сурвалжийг харах

Make "2.8" the default Redis server profile.

Daniele Alessandri 11 жил өмнө
parent
commit
7c5aba08cd

+ 2 - 0
CHANGELOG.md

@@ -1,6 +1,8 @@
 v0.9.0 (201x-xx-xx)
 ===============================================================================
 
+- The default server profile for Redis is now `2.8`.
+
 - The `Predis\Option` namespace is now known as `Predis\Configuration` and have
   a fully-reworked `Options` class with the ability to lazily initialize values
   using objects that responds to `__invoke()` (not all the kinds of callables)

+ 1 - 1
lib/Predis/Profile/ServerProfile.php

@@ -78,7 +78,7 @@ abstract class ServerProfile implements ServerProfileInterface, CommandProcessin
             '2.4'     => 'Predis\Profile\ServerVersion24',
             '2.6'     => 'Predis\Profile\ServerVersion26',
             '2.8'     => 'Predis\Profile\ServerVersion28',
-            'default' => 'Predis\Profile\ServerVersion26',
+            'default' => 'Predis\Profile\ServerVersion28',
             'dev'     => 'Predis\Profile\ServerVersionNext',
         );
     }

+ 1 - 1
phpunit.xml.dist

@@ -27,7 +27,7 @@
 
     <php>
         <!-- Redis -->
-        <const name="REDIS_SERVER_VERSION" value="2.6" />
+        <const name="REDIS_SERVER_VERSION" value="2.8" />
         <const name="REDIS_SERVER_HOST" value="127.0.0.1" />
         <const name="REDIS_SERVER_PORT" value="6379" />
         <const name="REDIS_SERVER_DBNUM" value="15" />

+ 1 - 1
tests/Predis/Profile/ServerProfileTest.php

@@ -20,7 +20,7 @@ use Predis\Command\Processor\ProcessorChain;
  */
 class ServerProfileTest extends StandardTestCase
 {
-    const DEFAULT_PROFILE_VERSION = '2.6';
+    const DEFAULT_PROFILE_VERSION = '2.8';
     const DEVELOPMENT_PROFILE_VERSION = '3.0';
 
     /**