Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions base.php
Original file line number Diff line number Diff line change
Expand Up @@ -974,8 +974,15 @@ function recursive($arg,$func,$stack=[]) {
// skip inaccessible properties #350
if (!$it && !isset($arg->$key))
continue;
$arg->$key=$this->recursive(
$val,$func,array_merge($stack,[$arg]));
$value = $this->recursive(
$val, $func, array_merge($stack, [$arg])
);

if ($arg instanceof \ArrayObject) {
$arg[$key] = $value;
} else {
$arg->$key = $value;
}
}
}
return $arg;
Expand Down