From 2e67af2182df34e28a0f489d47cbed22351d9083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Gavrilovi=C4=87?= Date: Sat, 3 Dec 2022 09:24:11 +0100 Subject: [PATCH] Update DatabaseQueryCollector.php (#28) --- src/Collectors/DatabaseQueryCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Collectors/DatabaseQueryCollector.php b/src/Collectors/DatabaseQueryCollector.php index 9013af6..daf09e1 100644 --- a/src/Collectors/DatabaseQueryCollector.php +++ b/src/Collectors/DatabaseQueryCollector.php @@ -46,7 +46,7 @@ private function parseBindings(string $sql, array $bindings, Connection $connect $sql = str_replace(['%', '?'], ['%%', '%s'], $sql); $handledBindings = array_map(function ($binding) { - if (is_numeric($binding)) { + if (is_null($binding) || is_numeric($binding)) { return $binding; }