8
0

handle different cases in subscribed status

Dieser Commit ist enthalten in:
Daniel Seifert 2025-03-06 11:28:29 +01:00
Ursprung 787f593aee
Commit 732ad550e2

Datei anzeigen

@ -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