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 f888fd7 commit aabe2e1Copy full SHA for aabe2e1
src/Search/FacetSearchResult.php
@@ -47,7 +47,7 @@ public function toArray(): array
47
48
public function toJSON(): string
49
{
50
- return json_encode($this->toArray(), JSON_PRETTY_PRINT);
+ return json_encode($this->toArray(), JSON_PRETTY_PRINT | JSON_THROW_ON_ERROR);
51
}
52
53
public function getIterator(): \ArrayIterator
src/Search/SearchResult.php
@@ -245,7 +245,7 @@ public function toArray(): array
245
246
247
248
249
250
251
0 commit comments