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 8cb0b98 commit e651a85Copy full SHA for e651a85
templates/php/src/Query.php.twig
@@ -23,10 +23,10 @@ class Query implements \JsonSerializable
23
24
public function __toString(): string
25
{
26
- return json_encode($this->jsonSerialize());
+ return json_encode($this);
27
}
28
29
- public function jsonSerialize(): array
+ public function jsonSerialize(): mixed
30
31
return array_filter([
32
'method' => $this->method,
0 commit comments