Skip to content
Snippets Groups Projects
Unverified Commit f27fb03f authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Resolve psalm issue

parent 13421475
No related branches found
No related tags found
No related merge requests found
......@@ -399,11 +399,6 @@ class Memcache
// iterate over all the groups in the 'memcache_store.servers' configuration option
foreach ($groups as $index => $group) {
// make sure that the group doesn't have an index. An index would be a sign of invalid configuration
if (is_int($index)) {
$index = null;
}
/*
* Make sure that the group is an array. Each group is an array of servers. Each server is
* an array of name => value pairs for that server.
......@@ -416,6 +411,11 @@ class Memcache
);
}
// make sure that the group doesn't have an index. An index would be a sign of invalid configuration
if (is_int($index)) {
$index = null;
}
// parse and add this group to the server group list
self::$serverGroups[] = self::loadMemcacheServerGroup($group, $index);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment