Skip to content
Snippets Groups Projects

Issue #3422669: If new value is of array type, check if old too before compare

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -84,7 +84,7 @@ class ArrayDiff {
}, ARRAY_FILTER_USE_BOTH);
array_walk($changed, function (&$changedItem, $key) use ($old) {
if (is_array($changedItem) && !is_null($old[$key])) {
if (is_array($changedItem) && !is_null($old[$key]) && is_array($old[$key])) {
$changedItem = $this->diff($old[$key], $changedItem);
}
else {
Loading