handle different cases in subscribed status

This commit is contained in:
Daniel Seifert 2025-03-06 11:28:29 +01:00
parent 787f593aee
commit 732ad550e2

View File

@ -84,7 +84,7 @@ class Subscriber extends Entity
public function isSubscribed(): bool public function isSubscribed(): bool
{ {
return $this->getStatus() === self::STATUS_SUBSCRIBED; return strtolower($this->getStatus()) === strtolower(self::STATUS_SUBSCRIBED);
} }
public function getBounce(): ?string public function getBounce(): ?string
@ -94,7 +94,7 @@ class Subscriber extends Entity
public function isBounced(): bool public function isBounced(): bool
{ {
return $this->getBounce() !== self::BOUNCE_NOTBOUNCED; return strtolower($this->getBounce()) !== strtolower(self::BOUNCE_NOTBOUNCED);
} }
public function getDate(): ?DateTime public function getDate(): ?DateTime