Skip to content

Commit 131c50e

Browse files
committed
parseLiteral returns boolean type in case 'false' or 'true'
1 parent 3ca9397 commit 131c50e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PHPCR/Util/QOM/Sql2ToQomQueryConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,9 @@ protected function parseLiteral()
704704
} else if (is_numeric($token)){
705705
$token = strpos($token, '.') === false ? (int) $token : (float) $token;
706706
} else if ($token == 'true') {
707-
$token = '1';
707+
$token = true;
708708
} else if ($token == 'false') {
709-
$token = '0';
709+
$token = false;
710710
}
711711

712712
return $this->factory->literal($token);

0 commit comments

Comments
 (0)