FIX: wrong negation
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user