diff --git a/app/src/Service/Money.php b/app/src/Service/Money.php index f28f1cd..d7b25c7 100644 --- a/app/src/Service/Money.php +++ b/app/src/Service/Money.php @@ -17,7 +17,7 @@ class Money protected array $providers = []; public function register(Provider $provider): Money { - if (!in_array($provider, $this->providers)) { + if (in_array($provider, $this->providers)) { return $this; } $this->providers []= $provider;