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; }