Skip to content

Commit 698291c

Browse files
authored
Merge pull request #86 from 7snovic/bugfix-return-type
Change return type of jsonSerialize
2 parents 37a56d8 + ad0099b commit 698291c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Money.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ public function toJson($options = 0): string
650650
return json_encode($this->toArray(), $options);
651651
}
652652

653-
public function jsonSerialize(): array
653+
public function jsonSerialize(): mixed
654654
{
655655
return $this->toArray();
656656
}

0 commit comments

Comments
 (0)