Skip to content

Commit ad0099b

Browse files
committed
Change return type of jsonSerialize method to be compatible with the internal JsonSerializable::jsonSerialize definition
1 parent 37a56d8 commit ad0099b

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)