1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-12 11:24:03 +00:00

Make new() public

This commit is contained in:
Samuel Štancl 2021-12-13 01:18:37 +01:00 committed by GitHub
parent 0d8e3c824f
commit 8ca21240df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ final class Money implements JsonSerializable, Arrayable, Wireable
} }
/** Create a new Money instance with the same currency. */ /** Create a new Money instance with the same currency. */
protected function new(int $value): self public function new(int $value): self
{ {
return new self($value, $this->currency); return new self($value, $this->currency);
} }