mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 19:34:02 +00:00
Make new() public
This commit is contained in:
parent
0d8e3c824f
commit
8ca21240df
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ final class Money implements JsonSerializable, Arrayable, Wireable
|
|||
}
|
||||
|
||||
/** 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue