Browse Source

Switch to string-based versions for RedisServerProfile classes.

Daniele Alessandri 15 years ago
parent
commit
d719a26406
1 changed files with 3 additions and 3 deletions
  1. 3 3
      lib/Predis.php

+ 3 - 3
lib/Predis.php

@@ -813,7 +813,7 @@ abstract class RedisServerProfile {
 }
 
 class RedisServer__V1_0 extends RedisServerProfile {
-    public function getVersion() { return 1.0; }
+    public function getVersion() { return '1.0'; }
     public function getSupportedCommands() {
         return array(
             /* miscellaneous commands */
@@ -943,7 +943,7 @@ class RedisServer__V1_0 extends RedisServerProfile {
 }
 
 class RedisServer__V1_2 extends RedisServer__V1_0 {
-    public function getVersion() { return 1.2; }
+    public function getVersion() { return '1.2'; }
     public function getSupportedCommands() {
         return array_merge(parent::getSupportedCommands(), array(
             /* commands operating on string values */
@@ -980,7 +980,7 @@ class RedisServer__V1_2 extends RedisServer__V1_0 {
 }
 
 class RedisServer__Futures extends RedisServer__V1_2 {
-    public function getVersion() { return 0; }
+    public function getVersion() { return 'DEV'; }
     public function getSupportedCommands() {
         return array_merge(parent::getSupportedCommands(), array(
             'multi'     => '\Predis\Commands\Multi',