Skip to content

Commit 55c8147

Browse files
committed
Add comment about filtering
1 parent 6e67a4c commit 55c8147

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Event/Parameters.php

+1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ private static function normalize($data, string $field = null)
100100
}
101101
unset($datum);
102102

103+
// this will filter values we don't want to send to Meta/Facebook, i.e. nulls, empty strings, and empty arrays
103104
return array_filter($data, static function ($value): bool {
104105
return !(null === $value || '' === $value || [] === $value);
105106
});

0 commit comments

Comments
 (0)