Skip to content

Commit 2dc3b6b

Browse files
committed
Fix merging of anonymized array attributes
1 parent 61ebaef commit 2dc3b6b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/AnonymizesAttributes.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ protected function addAnonymizedAttributesToArray(array $attributes): array
7171
continue;
7272
}
7373

74-
$attributes[$key] = $value;
74+
if (! is_array($attributes[$key])) {
75+
$attributes[$key] = $value;
76+
77+
continue;
78+
}
79+
80+
$attributes[$key] = $this->addAnonymizedAttributesToArray($value) + $attributes[$key];
7581
}
7682

7783
return $attributes;

0 commit comments

Comments
 (0)