Fix tests

refs #2635
This commit is contained in:
Alexander A. Klimov 2018-06-22 09:57:10 +02:00
parent 906c1668a4
commit 73473a3bb9

View File

@ -69,6 +69,7 @@ class Json
if ($autoSanitize) { if ($autoSanitize) {
return static::encode(static::sanitizeUtf8Recursive($value), $options, $depth); return static::encode(static::sanitizeUtf8Recursive($value), $options, $depth);
} }
// Fallthrough
default: default:
throw new JsonEncodeException('%s: %s', static::lastErrorMsg(), var_export($value, true)); throw new JsonEncodeException('%s: %s', static::lastErrorMsg(), var_export($value, true));