mirror of
https://github.com/predis/predis.git
synced 2026-08-30 12:15:03 +00:00
Casting a instance of Predis\RedisServerProfile to string returns its associated version string.
This commit is contained in:
@@ -807,6 +807,10 @@ abstract class RedisServerProfile {
|
||||
$this->_registeredCommands[$aliases] = $command;
|
||||
}
|
||||
}
|
||||
|
||||
public function __toString() {
|
||||
return $this->getVersion();
|
||||
}
|
||||
}
|
||||
|
||||
class RedisServer__V1_0 extends RedisServerProfile {
|
||||
|
||||
Reference in New Issue
Block a user