Fix detection of Notifiers

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-04-30 12:08:10 +02:00
parent 44bc697a93
commit 865c12aa0e
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -43,22 +43,14 @@ class Manager implements IManager {
/** @var IApp[] */
protected $apps;
/** @var INotifier[] */
protected $notifiers;
/** @var array[] */
protected $notifiersInfo;
/** @var string[] */
protected $appClasses;
/** @var INotifier[] */
protected $notifiers;
/** @var string[] */
protected $notifierClasses;
/** @var \Closure[] */
protected $notifiersInfoClosures;
/** @var bool */
protected $preparingPushNotification;
@ -167,7 +159,7 @@ class Manager implements IManager {
* @since 8.2.0
*/
public function hasNotifiers(): bool {
return !empty($this->notifiersClosures);
return !empty($this->notifiers) || !empty($this->notifierClasses);
}
/**