From ab60c9db1b64cd76943f21df608934ff8fda18b7 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Fri, 24 Oct 2025 19:32:19 -0300 Subject: [PATCH] FIX: wrong negation --- app/src/Service/Money.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;