Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 committed Sep 16, 2024
1 parent 3fe142e commit fba2628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Glpi/Asset/CustomFieldType/DropdownType.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function normalizeValue(mixed $value): string|int|null
$value = [$value];
}
$value = array_filter($value, static fn ($val) => (int) $val > 0);
return json_encode(array_map(static fn ($val) => (int) $val, $value)) ?? '[]';
return json_encode(array_map(static fn ($val) => (int) $val, $value));
}
return (int) $value;
}
Expand Down

0 comments on commit fba2628

Please sign in to comment.