Skip to content

Commit e651a85

Browse files
committed
Fix deprecation warning
1 parent 8cb0b98 commit e651a85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/php/src/Query.php.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ class Query implements \JsonSerializable
2323
2424
public function __toString(): string
2525
{
26-
return json_encode($this->jsonSerialize());
26+
return json_encode($this);
2727
}
2828
29-
public function jsonSerialize(): array
29+
public function jsonSerialize(): mixed
3030
{
3131
return array_filter([
3232
'method' => $this->method,

0 commit comments

Comments
 (0)