We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08fab51 + 5301636 commit 8115ccdCopy full SHA for 8115ccd
src/Masking/FieldMasker.php
@@ -30,8 +30,12 @@ public function mask(array $data): array
30
return $collector;
31
}
32
33
- private function handleString(string $key, string $value): string
+ private function handleString(string|int|float|bool $key, string $value): string
34
{
35
+ if (! is_string($key)) {
36
+ $key = (string) $key;
37
+ }
38
+
39
static $lowerFields = null;
40
if ($lowerFields === null) {
41
$lowerFields = array_map('strtolower', $this->fields);
0 commit comments