Skip to content

Commit c920ae3

Browse files
committed
Fix PHP bool value queries
1 parent 77fc00b commit c920ae3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

templates/php/src/Query.php.twig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ class Query
167167
*/
168168
private static function parseValues($value): string
169169
{
170-
return is_string($value) ? '"' . $value . '"' : $value;
170+
if (is_string($value)) {
171+
return '"' . $value . '"';
172+
}
173+
if (is_bool($value)) {
174+
return $value ? 'true' : 'false';
175+
}
176+
return $value;
171177
}
172178
}

0 commit comments

Comments
 (0)