Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Correct spelling of function getMajorVersion
Browse files Browse the repository at this point in the history
Corrected the name of the function and provide a proxy for backwards compatibility. Refs zendframework/zendframework#4804
  • Loading branch information
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Storage/Adapter/RedisResourceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,27 @@ public function getDatabase($id)

/**
* Get redis server version
* Proxy for corrected function name
*
* @deprecated
*
* @param string $id
* @return int
* @throws Exception\RuntimeException
*/
public function getMayorVersion($id)
{
return $this->getMajorVersion($id);
}

/**
* Get redis server version
*
* @param string $id
* @return int
* @throws Exception\RuntimeException
*/
public function getMajorVersion($id)
{
if (!$this->hasResource($id)) {
throw new Exception\RuntimeException("No resource with id '{$id}'");
Expand Down

0 comments on commit 01ebef5

Please sign in to comment.