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

Commit 516f39b

Browse files
committed
add redactedProperties
1 parent 974723b commit 516f39b

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
@@ -76,7 +76,7 @@ private function ignoreKeys(array &$values, array $ignoredKeys): void
7676
private function redactKeys(array &$values, array $redactedKeys): void
7777
{
7878
foreach($values as $key => $value) {
79-
if (in_array($key, $redactedKeys)) {
79+
if (in_array($key, $redactedKeys) && !empty($value)) {
8080
$values[$key] = 'REDACTED';
8181
}
8282
else if(is_array($value)) {

0 commit comments

Comments
 (0)