From 1e8062c7024b42d36ad06dd43cb1d6449a1f8225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Tue, 11 Feb 2020 16:57:22 +0100 Subject: [PATCH] Fix flattenArgument for booleans (#97) --- lib/Sync/functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Sync/functions.php b/lib/Sync/functions.php index e113f58..875b16d 100644 --- a/lib/Sync/functions.php +++ b/lib/Sync/functions.php @@ -71,5 +71,9 @@ function flattenArgument($value): string return 'null'; } + if (\is_bool($value)) { + return $value ? 'true' : 'false'; + } + return (string) $value; }