Work on a copy as recursion-context changes the arrays
This commit is contained in:
parent
7dfcd2418a
commit
ecbefe18c8
|
|
@ -250,11 +250,12 @@ class Exporter
|
|||
return 'Array &' . $key;
|
||||
}
|
||||
|
||||
$array = $value;
|
||||
$key = $processed->add($value);
|
||||
$values = '';
|
||||
|
||||
if (count($value) > 0) {
|
||||
foreach ($value as $k => $v) {
|
||||
if (count($array) > 0) {
|
||||
foreach ($array as $k => $v) {
|
||||
$values .= sprintf(
|
||||
'%s %s => %s' . "\n",
|
||||
$whitespace,
|
||||
|
|
|
|||
Loading…
Reference in New Issue