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

Commit 6293738

Browse files
authored
Update SnapshotJsonObjectDriver.php
1 parent 1e15e10 commit 6293738

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) && !empty($value)) {
79+
if (in_array($key, $redactedKeys) && $value !== null) {
8080
$values[$key] = 'REDACTED';
8181
}
8282
else if(is_array($value)) {

0 commit comments

Comments
 (0)