This commit is contained in:
Daniil Gentili 2017-01-23 18:35:53 +01:00
parent 47a77c498b
commit 07db79dcb6

View File

@ -153,11 +153,7 @@ trait TL
return $concat;
case 'Bool':
if (!is_bool($object)) {
throw new Exception("given value isn't a boolean");
}
return $this->serialize_bool($object);
return $this->serialize_bool((bool)$object);
case 'true':
return;
case '!X':