Added comment about array_merge() not working

This commit is contained in:
Christopher Joe 2018-02-26 12:24:02 +13:00 committed by Damian Mooyman
parent 0863bac29a
commit 1cdbab45c9

View File

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