From c7feff9fe64d4a334be00ab12b30a99a9b7ad6e5 Mon Sep 17 00:00:00 2001 From: Hank GH Chen <372259464@qq.com> Date: Thu, 18 Dec 2025 21:24:53 +0800 Subject: [PATCH] Add return type to jsonSerialize method --- src/AbstractNumber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AbstractNumber.php b/src/AbstractNumber.php index fe53a76..4776922 100644 --- a/src/AbstractNumber.php +++ b/src/AbstractNumber.php @@ -544,7 +544,7 @@ public function __toString(): string /** * Converts the current MadeByBob\Number instance into a string. */ - public function jsonSerialize() + public function jsonSerialize(): mixed { return $this->toString(); }