[DoctrineMongoDBBundle] fixed formatting of booleans in query log
This commit is contained in:
parent
115d073033
commit
5f9c365971
@ -52,7 +52,9 @@ class DoctrineMongoDBLogger
|
||||
$array = false;
|
||||
}
|
||||
|
||||
if (is_scalar($value)) {
|
||||
if (is_bool($value)) {
|
||||
$formatted = $value ? 'true' : 'false';
|
||||
} elseif (is_scalar($value)) {
|
||||
$formatted = '"'.$value.'"';
|
||||
} elseif (is_array($value)) {
|
||||
$formatted = static::formatQuery($value);
|
||||
|
Reference in New Issue
Block a user