mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Added comment about array_merge() not working
This commit is contained in:
parent
d91648dd6e
commit
f650c92436
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user