From 1cdbab45c95a9b240f472c9c2f97f4935124a9ff Mon Sep 17 00:00:00 2001 From: Christopher Joe Date: Mon, 26 Feb 2018 12:24:02 +1300 Subject: [PATCH] Added comment about array_merge() not working --- src/Core/Environment.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Core/Environment.php b/src/Core/Environment.php index c8f6cb806..27d28c65a 100644 --- a/src/Core/Environment.php +++ b/src/Core/Environment.php @@ -44,6 +44,7 @@ class Environment { // Suppress return by-ref $vars = [ 'env' => static::$env ]; + // needs to use a for loop, using `array_merge([], $GLOBALS);` left reference traces somehow foreach ($GLOBALS as $varName => $varValue) { $vars[$varName] = $varValue; }