Skip to content

Commit d11198b

Browse files
committed
cast return type for check
1 parent 0dacf13 commit d11198b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Entities/Subscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getStatus(): ?string
8585

8686
public function isSubscribed(): bool
8787
{
88-
return strtolower($this->getStatus()) === strtolower(self::STATUS_SUBSCRIBED);
88+
return strtolower((string) $this->getStatus()) === strtolower(self::STATUS_SUBSCRIBED);
8989
}
9090

9191
public function isOptInPending(): bool

0 commit comments

Comments
 (0)