Fix booleans

This commit is contained in:
Daniil Gentili 2017-07-26 20:02:51 +02:00
parent 89137fe82e
commit 6b7d19ed56

View File

@ -319,7 +319,7 @@ trait TL
return $concat;
case 'Bool':
return $this->constructors->find_by_predicate($bool ? 'boolTrue' : 'boolFalse')['id'];
return $this->constructors->find_by_predicate(((bool)$object) ? 'boolTrue' : 'boolFalse')['id'];
case 'true':
return;
case '!X':