Fixed oversight not caught by phpstan tsk tsk.
This commit is contained in:
parent
c40f264755
commit
339f9d3701
3 changed files with 11 additions and 11 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
0.2404.102325
|
||||
0.2404.102336
|
||||
|
|
|
@ -26,14 +26,14 @@ class MemcachedProviderLegacy extends MemcachedProvider {
|
|||
|
||||
foreach($providerInfo->getEndPoints() as $endPointInfo) {
|
||||
if($endPointInfo[0] instanceof UnixEndPoint) {
|
||||
$host = 'unix://' . $endPointInfo->getPath();
|
||||
$host = 'unix://' . $endPointInfo[0]->getPath();
|
||||
$port = 0;
|
||||
} elseif($endPointInfo[0] instanceof DnsEndPoint) {
|
||||
$host = $endPointInfo->getHost();
|
||||
$port = $endPointInfo->getPort();
|
||||
$host = $endPointInfo[0]->getHost();
|
||||
$port = $endPointInfo[0]->getPort();
|
||||
} elseif($endPointInfo[0] instanceof IPEndPoint) {
|
||||
$host = $endPointInfo->getAddress()->getCleanAddress();
|
||||
$port = $endPointInfo->getPort();
|
||||
$host = $endPointInfo[0]->getAddress()->getCleanAddress();
|
||||
$port = $endPointInfo[0]->getPort();
|
||||
} else throw new InvalidArgumentException('One of the servers specified in $providerInfo is not a supported endpoint.');
|
||||
|
||||
$this->memcache->addServer($host, $port, $this->persistent, $endPointInfo[1]);
|
||||
|
|
|
@ -25,14 +25,14 @@ class MemcachedProviderModern extends MemcachedProvider {
|
|||
|
||||
foreach($providerInfo->getEndPoints() as $endPointInfo) {
|
||||
if($endPointInfo[0] instanceof UnixEndPoint) {
|
||||
$host = $endPointInfo->getPath();
|
||||
$host = $endPointInfo[0]->getPath();
|
||||
$port = 0;
|
||||
} elseif($endPointInfo[0] instanceof DnsEndPoint) {
|
||||
$host = $endPointInfo->getHost();
|
||||
$port = $endPointInfo->getPort();
|
||||
$host = $endPointInfo[0]->getHost();
|
||||
$port = $endPointInfo[0]->getPort();
|
||||
} elseif($endPointInfo[0] instanceof IPEndPoint) {
|
||||
$host = $endPointInfo->getAddress()->getCleanAddress();
|
||||
$port = $endPointInfo->getPort();
|
||||
$host = $endPointInfo[0]->getAddress()->getCleanAddress();
|
||||
$port = $endPointInfo[0]->getPort();
|
||||
} else throw new InvalidArgumentException('One of the servers specified in $providerInfo is not a supported endpoint.');
|
||||
|
||||
$this->memcached->addServer($host, $port, $endPointInfo[1]);
|
||||
|
|
Loading…
Reference in a new issue