Skip to content

Commit 11c8b7a

Browse files
committed
Try to fix bools
1 parent b294545 commit 11c8b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Typesense/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private function transformValueForTypeSense(string $schemaType, mixed $value): m
8888
return match (str_replace('[]', '', $schemaType)) {
8989
'int32', 'int64' => (int) $value,
9090
'float' => (float) $value,
91-
'bool' => (bool) $value,
91+
'bool' => $value ? 'true' : 'false',
9292
default => '`'.$value.'`'
9393
};
9494
}

0 commit comments

Comments
 (0)