Skip to content

Commit

Permalink
Make new() public
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl authored Dec 13, 2021
1 parent 0d8e3c8 commit 8ca2124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Money.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(int $value, Currency|string $currency = null)
}

/** 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);
}
Expand Down

0 comments on commit 8ca2124

Please sign in to comment.