From b609c058f247b5fdf4f5143e84aa0697e6aed91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no> Date: Wed, 18 Mar 2020 11:39:56 +0100 Subject: [PATCH] Resolve psalm issue --- lib/SimpleSAML/Memcache.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/SimpleSAML/Memcache.php b/lib/SimpleSAML/Memcache.php index ea8e9b175..adb3ab0ed 100644 --- a/lib/SimpleSAML/Memcache.php +++ b/lib/SimpleSAML/Memcache.php @@ -336,11 +336,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. @@ -353,6 +348,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); } -- GitLab