mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Added comment about array_merge() not working
This commit is contained in:
parent
0863bac29a
commit
1cdbab45c9
@ -44,6 +44,7 @@ class Environment
|
|||||||
{
|
{
|
||||||
// Suppress return by-ref
|
// Suppress return by-ref
|
||||||
$vars = [ 'env' => static::$env ];
|
$vars = [ 'env' => static::$env ];
|
||||||
|
// needs to use a for loop, using `array_merge([], $GLOBALS);` left reference traces somehow
|
||||||
foreach ($GLOBALS as $varName => $varValue) {
|
foreach ($GLOBALS as $varName => $varValue) {
|
||||||
$vars[$varName] = $varValue;
|
$vars[$varName] = $varValue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user