Skip to content

Commit ce2d2e0

Browse files
committed
no need for this check based on input types
1 parent a1f9023 commit ce2d2e0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Encoder/JsonxTypeEncoder.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ private function getType(null|array|bool|float|int|string $value): string
178178
return self::DATATYPE_NUMBER;
179179
}
180180

181-
if (null === $value) {
182-
return self::DATATYPE_NULL;
183-
}
181+
return self::DATATYPE_NULL;
184182
}
185183
}

0 commit comments

Comments
 (0)