From e8ef3eb6641ed84439d0b09b8aa4cc5f58e51cd2 Mon Sep 17 00:00:00 2001 From: Patrik Foldes Date: Thu, 27 Feb 2020 21:29:46 +0300 Subject: [PATCH] Added correct phpdoc typehint --- src/BaseMoney.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/BaseMoney.php b/src/BaseMoney.php index 5bf2607..1618aad 100644 --- a/src/BaseMoney.php +++ b/src/BaseMoney.php @@ -68,6 +68,9 @@ final private function __construct(string $amount, string $currency) $this->currency = $currency; } + /** + * @return static + */ final public static function create(string $amount, Currency $currency) : self { $money = new static($amount, $currency->getCode());