From a9b4dea301709432ebb669c1a1f82038c45e3b3d Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sat, 21 Jan 2023 19:23:07 +0100 Subject: [PATCH] Strongly type the parameter type --- packages/framework/src/Support/Concerns/Serializable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/framework/src/Support/Concerns/Serializable.php b/packages/framework/src/Support/Concerns/Serializable.php index e7f3a2a12aa..d7ae70c5fa0 100644 --- a/packages/framework/src/Support/Concerns/Serializable.php +++ b/packages/framework/src/Support/Concerns/Serializable.php @@ -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); }