We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 754686c commit a90148aCopy full SHA for a90148a
src/Elasticsearch/Serializers/SmartSerializer.php
@@ -33,7 +33,7 @@ public function serialize($data): string
33
} else {
34
$data = json_encode($data, JSON_PRESERVE_ZERO_FRACTION + JSON_INVALID_UTF8_SUBSTITUTE);
35
if ($data === false) {
36
- throw new Exceptions\RuntimeException("Failed to JSON encode: ".json_last_error());
+ throw new Exceptions\RuntimeException("Failed to JSON encode: ".json_last_error_msg());
37
}
38
if ($data === '[]') {
39
return '{}';
0 commit comments