diff --git a/src/Security/MastodonAccount.php b/src/Security/MastodonAccount.php index 872a049..df0adea 100644 --- a/src/Security/MastodonAccount.php +++ b/src/Security/MastodonAccount.php @@ -330,7 +330,7 @@ class MastodonAccount implements UserInterface public function addField(CustomField $field): self { - if (in_array($field, $this->Fields) !== false) { + if (in_array($field, $this->Fields) === false) { $this->Fields[] = $field; $field->setMastodonAccount($this); } @@ -357,7 +357,7 @@ class MastodonAccount implements UserInterface public function addEmoji(Emoji $emoji): self { - if (in_array($emoji, $this->Emojis) !== false) { + if (in_array($emoji, $this->Emojis) === false) { $this->Emojis[] = $emoji; $emoji->setMastodonAccount($this); }