Skip to content
Snippets Groups Projects
Unverified Commit 865c12aa authored by Joas Schilling's avatar Joas Schilling
Browse files

Fix detection of Notifiers

parent 44bc697a
No related branches found
No related tags found
No related merge requests found
...@@ -43,22 +43,14 @@ class Manager implements IManager { ...@@ -43,22 +43,14 @@ class Manager implements IManager {
/** @var IApp[] */ /** @var IApp[] */
protected $apps; protected $apps;
/** @var INotifier[] */
protected $notifiers;
/** @var array[] */
protected $notifiersInfo;
/** @var string[] */ /** @var string[] */
protected $appClasses; protected $appClasses;
/** @var INotifier[] */
protected $notifiers;
/** @var string[] */ /** @var string[] */
protected $notifierClasses; protected $notifierClasses;
/** @var \Closure[] */
protected $notifiersInfoClosures;
/** @var bool */ /** @var bool */
protected $preparingPushNotification; protected $preparingPushNotification;
...@@ -167,7 +159,7 @@ class Manager implements IManager { ...@@ -167,7 +159,7 @@ class Manager implements IManager {
* @since 8.2.0 * @since 8.2.0
*/ */
public function hasNotifiers(): bool { public function hasNotifiers(): bool {
return !empty($this->notifiersClosures); return !empty($this->notifiers) || !empty($this->notifierClasses);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment