Skip to content

Commit 0f140b0

Browse files
committed
Tighten equality
1 parent 5830d5d commit 0f140b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Newsletter/Model/Subscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public function isStatusChanged()
353353
*/
354354
public function isSubscribed()
355355
{
356-
return $this->getId() && $this->getStatus() == self::STATUS_SUBSCRIBED;
356+
return $this->getId() && $this->getStatus() === self::STATUS_SUBSCRIBED;
357357
}
358358

359359
/**

0 commit comments

Comments
 (0)