From b1f6e13e43a7966a04914cf9a82ac8652775c80a Mon Sep 17 00:00:00 2001 From: "amelie.haladjian" Date: Fri, 29 Nov 2024 18:43:37 +0100 Subject: [PATCH] feat(api tester): handle null in tag --- src/Config/Filters.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Config/Filters.php b/src/Config/Filters.php index 772e45b..0580549 100644 --- a/src/Config/Filters.php +++ b/src/Config/Filters.php @@ -153,7 +153,7 @@ private function getBaseLineData(): array } /** - * @return array{0: string, 1: string|int} + * @return array{0: string, 1: string|int|null} */ private function handleTags(string|int|TaggedValue $value): array { @@ -168,6 +168,10 @@ private function handleTags(string|int|TaggedValue $value): array $value = (string) $value->getValue(); } + if ($value === 'null') { + $value = null; + } + return [$operator, $value]; } }