From 8ca21240dffb4c48895806dd16831e17bcc972c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 13 Dec 2021 01:18:37 +0100 Subject: [PATCH] Make new() public --- src/Money.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Money.php b/src/Money.php index 980d4e2..650f5fb 100644 --- a/src/Money.php +++ b/src/Money.php @@ -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); }