[DoctrineBridge] Fixed non-utf-8 recognition
This commit is contained in:
parent
6c0d2b92ac
commit
67fbbac877
@ -56,7 +56,7 @@ class DbalLogger implements SQLLogger
|
||||
}
|
||||
|
||||
// non utf-8 strings break json encoding
|
||||
if (null === preg_match('#[^\p{L}\p{N} ]#u', $params[$index])) {
|
||||
if (!preg_match('#[\p{L}\p{N} ]#u', $params[$index])) {
|
||||
$params[$index] = self::BINARY_DATA_VALUE;
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user