Skip to content

Commit

Permalink
Strongly type the parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 21, 2023
1 parent 4f7397d commit a9b4dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framework/src/Support/Concerns/Serializable.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function jsonSerialize(): array
}

/** @inheritDoc */
public function toJson($options = 0): string
public function toJson(int $options = 0): string
{
return json_encode($this->jsonSerialize(), $options);
}
Expand Down

0 comments on commit a9b4dea

Please sign in to comment.