Hi,

The Subscriber class was declared but is not using. Remove it.

Code: use Drupal\simplenews\Entity\Subscriber;
Line: 21

Thanks

Comments

mgoncalves created an issue. See original summary.

mgoncalves’s picture

Assigned: mgoncalves » Unassigned
Status: Active » Needs review
StatusFileSize
new417 bytes
hgunicamp’s picture

Status: Needs review » Reviewed & tested by the community

I revised each assignment of the $subscriber variable and, for me looks enough importing only the SubscriberInterface, once 'SubscriberInterface::INACTIVE' and 'SubscriberInterface::ACTIVE' are used in simplenews.module file.

jonathanshaw’s picture

Title: Remove uselessness code. » Remove unused simplenews\Entity\Subscriber from simplenews.module
Category: Bug report » Task

  • Berdir committed e3930ac on 8.x-1.x authored by mgoncalves
    Issue #2876617 by mgoncalves: Remove unused simplenews\Entity\Subscriber...
berdir’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.