Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit c9e4d6b

Browse files
authored
Update SnapshotJsonObjectDriver.php
1 parent e721c56 commit c9e4d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SnapshotDriver/SnapshotJsonObjectDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private function ignoreKeys(array &$values, array $ignoredKeys): void
8181
private function redactKeys(array &$values, array $redactedKeys): void
8282
{
8383
foreach($values as $key => $value) {
84-
if (in_array($key, $redactedKeys) && $value !== null) {
84+
if (in_array($key, $redactedKeys) && ($value !== null || (is_array($value) && !empty($value)))) {
8585
$values[$key] = 'REDACTED';
8686
}
8787
else if(is_array($value)) {

0 commit comments

Comments
 (0)