Skip to content

Commit 28d882b

Browse files
authored
Add toJson method to Jsonable and Fluent classes (#6761)
1 parent 91fa71b commit 28d882b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Fluent.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,8 @@ public function jsonSerialize(): mixed
249249

250250
/**
251251
* Convert the fluent instance to JSON.
252-
*
253-
* @param int $options
254-
* @return string
255252
*/
256-
public function toJson($options = 0)
253+
public function toJson(int $options = 0): string
257254
{
258255
return json_encode($this->jsonSerialize(), $options);
259256
}

0 commit comments

Comments
 (0)