From 9d02c56136a9fee16e840aa9b98c9c9decb74148 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 29 Mar 2018 00:27:06 +0100 Subject: [PATCH] Tidied up `get` key array handling --- src/Config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config.php b/src/Config.php index 001a1db..363f15e 100644 --- a/src/Config.php +++ b/src/Config.php @@ -203,10 +203,10 @@ public function set($key, $value = null) public function get($key, $default = null) { if (is_array($key)) { - $values = $key; + $keys = $key; $results = []; - foreach ($values as $key => $value) { + foreach ($keys as $key) { $results[$key] = $this->get($key, $default); }