Skip to content

Commit

Permalink
Try to fix bools
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Jan 24, 2025
1 parent b294545 commit 11c8b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Typesense/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private function transformValueForTypeSense(string $schemaType, mixed $value): m
return match (str_replace('[]', '', $schemaType)) {
'int32', 'int64' => (int) $value,
'float' => (float) $value,
'bool' => (bool) $value,
'bool' => $value ? 'true' : 'false',
default => '`'.$value.'`'
};
}
Expand Down

0 comments on commit 11c8b7a

Please sign in to comment.